| @@ 4446-4473 (lines=28) @@ | ||
| 4443 | forceEllipses: false |
|
| 4444 | }) |
|
| 4445 | ||
| 4446 | .directive('uibPagination', ['$parse', 'uibPaginationConfig', function($parse, uibPaginationConfig) { |
|
| 4447 | return { |
|
| 4448 | scope: { |
|
| 4449 | totalItems: '=', |
|
| 4450 | firstText: '@', |
|
| 4451 | previousText: '@', |
|
| 4452 | nextText: '@', |
|
| 4453 | lastText: '@', |
|
| 4454 | ngDisabled:'=' |
|
| 4455 | }, |
|
| 4456 | require: ['uibPagination', '?ngModel'], |
|
| 4457 | controller: 'UibPaginationController', |
|
| 4458 | controllerAs: 'pagination', |
|
| 4459 | templateUrl: function(element, attrs) { |
|
| 4460 | return attrs.templateUrl || 'uib/template/pagination/pagination.html'; |
|
| 4461 | }, |
|
| 4462 | replace: true, |
|
| 4463 | link: function(scope, element, attrs, ctrls) { |
|
| 4464 | var paginationCtrl = ctrls[0], ngModelCtrl = ctrls[1]; |
|
| 4465 | ||
| 4466 | if (!ngModelCtrl) { |
|
| 4467 | return; // do nothing if no ng-model |
|
| 4468 | } |
|
| 4469 | ||
| 4470 | paginationCtrl.init(ngModelCtrl, uibPaginationConfig); |
|
| 4471 | } |
|
| 4472 | }; |
|
| 4473 | }]); |
|
| 4474 | ||
| 4475 | /** |
|
| 4476 | * The following features are still outstanding: animation as a |
|
| @@ 4445-4472 (lines=28) @@ | ||
| 4442 | forceEllipses: false |
|
| 4443 | }) |
|
| 4444 | ||
| 4445 | .directive('uibPagination', ['$parse', 'uibPaginationConfig', function($parse, uibPaginationConfig) { |
|
| 4446 | return { |
|
| 4447 | scope: { |
|
| 4448 | totalItems: '=', |
|
| 4449 | firstText: '@', |
|
| 4450 | previousText: '@', |
|
| 4451 | nextText: '@', |
|
| 4452 | lastText: '@', |
|
| 4453 | ngDisabled:'=' |
|
| 4454 | }, |
|
| 4455 | require: ['uibPagination', '?ngModel'], |
|
| 4456 | controller: 'UibPaginationController', |
|
| 4457 | controllerAs: 'pagination', |
|
| 4458 | templateUrl: function(element, attrs) { |
|
| 4459 | return attrs.templateUrl || 'uib/template/pagination/pagination.html'; |
|
| 4460 | }, |
|
| 4461 | replace: true, |
|
| 4462 | link: function(scope, element, attrs, ctrls) { |
|
| 4463 | var paginationCtrl = ctrls[0], ngModelCtrl = ctrls[1]; |
|
| 4464 | ||
| 4465 | if (!ngModelCtrl) { |
|
| 4466 | return; // do nothing if no ng-model |
|
| 4467 | } |
|
| 4468 | ||
| 4469 | paginationCtrl.init(ngModelCtrl, uibPaginationConfig); |
|
| 4470 | } |
|
| 4471 | }; |
|
| 4472 | }]); |
|
| 4473 | ||
| 4474 | /** |
|
| 4475 | * The following features are still outstanding: animation as a |
|