angularjs - Why does not work filter with track by $index? -


there unput field on page:

<input type="text" ng-model="searchinside"> 

also ng-repeat below:

ng-repeat="item in details track $index | filter:searchinside"  

when insert symbols in input filter searchinside not work

because filters should applied before track by expression. so, move track $index end:

item in details | filter:searchinside track $index 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -