AngularJS | Custom Filters

AngularJS have nice way to filter data. A filter formats the value of an expression for display to the user. They can be used in view templates, controllers or services and it is easy to define your own filter.

Using filters in view templates

Filters can be applied to expressions in view templates using the following syntax:

{{ expression | filter }}

Custom filter example

shanidkv's picture