angular-underscore icon indicating copy to clipboard operation
angular-underscore copied to clipboard

map as a filter?

Open tve opened this issue 10 years ago • 1 comments

Can you provide an example for how to use map as a filter?

tve avatar Jun 01 '14 05:06 tve

The definition of filter in angular is not equivalent to traditional functional programming, it's a way to transform the data representation from view model to the user view.

Assume there is a function in scope called toUpper that does transforming a character to uppercase, then you can use collection|map:toUpper to make the expression be uppercase.

floydwch avatar Jun 01 '14 14:06 floydwch