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

Commit 5890248

Browse files
committed
feat(pager): change controllerAs to pager
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
1 parent 891c449 commit 5890248

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pager/pager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ angular.module('ui.bootstrap.pager', ['ui.bootstrap.pagination'])
1717
},
1818
require: ['uibPager', '?ngModel'],
1919
controller: 'UibPaginationController',
20-
controllerAs: 'pagination',
20+
controllerAs: 'pager',
2121
templateUrl: function(element, attrs) {
2222
return attrs.templateUrl || 'uib/template/pager/pager.html';
2323
},

src/pager/test/pager.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('pager directive', function() {
5454
});
5555

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

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

0 commit comments

Comments
 (0)