If I have something like :
{{(myList|filter:{state:"INFO"}).length}}
I am basically filtering on a specific Object property in my list. How do I do it in Javascript.
Currently the JavaScript takes only the value not the Object property.
$filter("filter")(myList,"INFO")
This works but isn't right as it looks for INFO in all object properties for single record.
$filter("filter")(myList,"INFO")
This is what I need but doesn't work as entire string is being used for filtering not treating as Object Property : Value pair
Any ideas around this ?
$filter("filter")(myList,{state:"INFO"})
?