Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
refactor(pagination): add href and track by in templates
Browse files Browse the repository at this point in the history
Closes #1725
  • Loading branch information
bekos committed Feb 8, 2014
1 parent 68e5644 commit 101c43a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion template/pagination/pager.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<ul class="pager">
<li ng-repeat="page in pages" ng-class="{disabled: page.disabled, previous: page.previous, next: page.next}"><a ng-click="selectPage(page.number)">{{page.text}}</a></li>
<li ng-repeat="page in pages track by $index" ng-class="{disabled: page.disabled, previous: page.previous, next: page.next}"><a href ng-click="selectPage(page.number)">{{page.text}}</a></li>
</ul>
2 changes: 1 addition & 1 deletion template/pagination/pagination.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<ul class="pagination">
<li ng-repeat="page in pages" ng-class="{active: page.active, disabled: page.disabled}"><a ng-click="selectPage(page.number)">{{page.text}}</a></li>
<li ng-repeat="page in pages track by $index" ng-class="{active: page.active, disabled: page.disabled}"><a href ng-click="selectPage(page.number)">{{page.text}}</a></li>
</ul>

0 comments on commit 101c43a

Please sign in to comment.