ng-falcor
ng-falcor copied to clipboard
How to use your library with angularjs filter?
First, congratulations for your library!
Consider this example:
<div class="todo-list-item" ng-repeat="i in range | filter:searchText">
Since it performs a loop on indices, instead of JSON objects, how is-it possible to use the angular filter in this case?
Or would you recommend another approach to filter a list?
Thanks!
That's a good question and I'm open to suggestions. Two ideas off the top of my head:
ng-if="ngf('some_list', i, 'some_prop').indexOf(searchText)"- Create a custom filter that accepts
iand otherwise operates similar to the above.
What do you think?