Created
August 13, 2013 15:27
-
-
Save teeaich/6222353 to your computer and use it in GitHub Desktop.
filter on objects in angular
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ games|filter:'street' }} // all games containing "street" in any property | |
{{ games|filter:'!street' }} // all games NOT containing "street" in any property | |
{{ games|filter:{name:'street'} }} // all games containing "street" in their name | |
{{ games|filter:{name:'street'}:true }} // all games named exactly "street" | |
{{ games|filter:{name:'street', device:'PS3'} }} // all games containing "street" in their name and PS3 in their device |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment