Wednesday, March 9, 2016

Angular | Filter |Limit no of Rows

Here we will see how we can limit the no of rows of a table.
we will give user an option to set how many rows he wants to see .

No. of rows to display<input type="number" ng-model="limit" step="1" min="0" max="50"/>

Now apply the filter :

<tr ng-repeat="Emp in Employee|filter:aa|limitTo:limit">

No comments:

Post a Comment