AngularJS conflit with limitTo and filter in ngrepeat
I have ng-repeat
with a lot of keywords (> 100,000), so I use limitTo:
, but I would like to be able to search in ALL.
Search: <input ng-model="filter:queryKeywords" type="text" placeholder="Filter" autofocus>
<label ng-repeat="k in keywords | limitTo:totalDisplayed | orderBy | filter:queryKeywords">
{{k}}
</label>
<!-- Will load 100+ keywords -->
<button class="btn btn-primary" ng-click="seeMore()">See More</button>
The problem is my search only works for the items I see.
I would like to search in all elements (even one that I cannot display).
Thank!
+3
source to share
2 answers