Sunday, December 15, 2013

Angularjs few builtin filters:

orderBy
<tr ng-repeat="actor in avengers cast | orderBy:'name'">
limitTo
<tr ng-repeat="actor in avengers cast | limitTo:5">

<tr ng-repeat="actor in avengers cast | filter:search | orderBy:'name' | limitTo: 5 ">

lowercase
uppercase
<tr ng-repeat="actor in avengers cast | filter:search">
<td>{{ actor.name | lowercase }}</td>  
<td>{{ actor.character | uppercase }}</td> 
</tr>

No comments:

Post a Comment