Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

map as a filter? #13

Open
tve opened this issue Jun 1, 2014 · 1 comment
Open

map as a filter? #13

tve opened this issue Jun 1, 2014 · 1 comment
Labels

Comments

@tve
Copy link

tve commented Jun 1, 2014

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

@floydwch
Copy link
Owner

floydwch commented Jun 1, 2014

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants