Skip to content Skip to sidebar Skip to footer

Angular - How Can I Watch A Filter Result Array For Changes From The Controller

I have a filter that filters with some criteria through a ng-repeat list. How could I watch the RESULTING array that is made by the filtering service for changes INSIDE the control

Solution 1:

What about piping your data through a local method like this ?

<li ng-repeat="item in catchData((items|cut:max))">...</li>

I plunked a full example here http://plnkr.co/edit/2L25wdB6S8GG659H4jPw?p=preview


Post a Comment for "Angular - How Can I Watch A Filter Result Array For Changes From The Controller"