Improve this doc

Writing your own filter is very easy: just register a new filter (injectable) factory function with your module. This factory function should return a new filter function which takes the input value as the first argument. Any filter arguments are passed in as additional arguments to the filter function.

The following sample filter reverses a text string. In addition, it conditionally makes the text upper-case and assigns color.

Source







Demo

Related Topics

Related API