mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-01 22:37:41 +08:00
doc(app): switch to use $last on ng-repeat
This commit is contained in:
@@ -253,7 +253,7 @@ docsApp.controller.DocsController = function($scope, $location, $window, $cookie
|
||||
|
||||
$scope.navClass = function(page1, page2) {
|
||||
return {
|
||||
last: this.$position == 'last',
|
||||
last: this.$last,
|
||||
active: page1 && this.currentPage == page1 || page2 && this.currentPage == page2
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user