AngularJS filters are used to format/transform
the data displayed in the view, filters
can be used with expressions, ng-bind, ng-repeat etc and act upon the data from
the model. The limitTo filter is used to control the number of
items that are displayed in an ng-repeat directive. The model array/collection
which feeds can have any number of items, but the limitTo filter can control the number of items displayed in the
view.
<li ng-repeat="<array/collection> | limitTo:<number of items to limit>">
The following is an example of using limitTo filter.