O'Reilly logo

Mastering AngularJS for .NET Developers by Mohammad Wadood Majid, Golrokh Mirzaei

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding filters

By now, we know how to transfer data from a backend or user into an HTML page. This section will focus on how to show and manipulate data using AngularJS. The AngularJS framework has another useful component: filters. Filters return a subset of the item. In AngularJS, a filter is a global function that can be implemented in the view using a pipe symbol (|) and the parameter separated by a colon (:). AngularJS filters are used to format data in the view, for example when we want to display a number up to two decimals even if the user enters the value with more than two decimals. The advantage of using the AngularJS filter is that you do not need to register a function on the scope. Filters are available for each and every ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required