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

Commit

Permalink
feat(pager): change controllerAs to pager
Browse files Browse the repository at this point in the history
BREAKING CHANGE: As part of the split of the pager component from the
pagination component, this changes the controllerAs use to `pager` from
`pagination`

Closes #4961
  • Loading branch information
wesleycho committed Nov 26, 2015
1 parent 891c449 commit 5890248
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pager/pager.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ angular.module('ui.bootstrap.pager', ['ui.bootstrap.pagination'])
},
require: ['uibPager', '?ngModel'],
controller: 'UibPaginationController',
controllerAs: 'pagination',
controllerAs: 'pager',
templateUrl: function(element, attrs) {
return attrs.templateUrl || 'uib/template/pager/pager.html';
},
Expand Down
2 changes: 1 addition & 1 deletion src/pager/test/pager.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('pager directive', function() {
});

it('exposes the controller on the template', function() {
$templateCache.put('uib/template/pager/pager.html', '<div>{{pagination.text}}</div>');
$templateCache.put('uib/template/pager/pager.html', '<div>{{pager.text}}</div>');

element = $compile('<uib-pager></uib-pager>')($rootScope);
$rootScope.$digest();
Expand Down

0 comments on commit 5890248

Please sign in to comment.