SyntaxFix
Write A Post
Hire A Developer
Questions
Angular comes with a limitTo:limit filter, it support limiting first x items and last x items:
<div ng-repeat="item in items|limitTo:4">{{item}}</div>