Skip to content

Instantly share code, notes, and snippets.

@rolaveric
Created September 2, 2015 12:41
Show Gist options
  • Save rolaveric/c8e8e69d9fc76e59177a to your computer and use it in GitHub Desktop.
Save rolaveric/c8e8e69d9fc76e59177a to your computer and use it in GitHub Desktop.
Template which uses the pageRange filter
<ul>
<li ng-repeat="index in ctrl.viewValue('titlesById.length') | pageRange:ctrl.page:ctrl.pageSize">
<dl>
<dt>Title</dt>
<dd>{{:: ctrl.viewValue('titlesById[' + index + '].title')}}</dd>
<dt>Description</dt>
<dd>{{:: ctrl.viewValue('titlesById[' + index + '].description')}}</dd>
</dl>
</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment