| @@ 6220-6238 (lines=19) @@ | ||
| 6217 | }); |
|
| 6218 | }]) |
|
| 6219 | ||
| 6220 | .directive('uibTimepicker', ['uibTimepickerConfig', function(uibTimepickerConfig) { |
|
| 6221 | return { |
|
| 6222 | require: ['uibTimepicker', '?^ngModel'], |
|
| 6223 | controller: 'UibTimepickerController', |
|
| 6224 | controllerAs: 'timepicker', |
|
| 6225 | replace: true, |
|
| 6226 | scope: {}, |
|
| 6227 | templateUrl: function(element, attrs) { |
|
| 6228 | return attrs.templateUrl || uibTimepickerConfig.templateUrl; |
|
| 6229 | }, |
|
| 6230 | link: function(scope, element, attrs, ctrls) { |
|
| 6231 | var timepickerCtrl = ctrls[0], ngModelCtrl = ctrls[1]; |
|
| 6232 | ||
| 6233 | if (ngModelCtrl) { |
|
| 6234 | timepickerCtrl.init(ngModelCtrl, element.find('input')); |
|
| 6235 | } |
|
| 6236 | } |
|
| 6237 | }; |
|
| 6238 | }]); |
|
| 6239 | ||
| 6240 | angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.debounce', 'ui.bootstrap.position']) |
|
| 6241 | ||
| @@ 6219-6237 (lines=19) @@ | ||
| 6216 | }); |
|
| 6217 | }]) |
|
| 6218 | ||
| 6219 | .directive('uibTimepicker', ['uibTimepickerConfig', function(uibTimepickerConfig) { |
|
| 6220 | return { |
|
| 6221 | require: ['uibTimepicker', '?^ngModel'], |
|
| 6222 | controller: 'UibTimepickerController', |
|
| 6223 | controllerAs: 'timepicker', |
|
| 6224 | replace: true, |
|
| 6225 | scope: {}, |
|
| 6226 | templateUrl: function(element, attrs) { |
|
| 6227 | return attrs.templateUrl || uibTimepickerConfig.templateUrl; |
|
| 6228 | }, |
|
| 6229 | link: function(scope, element, attrs, ctrls) { |
|
| 6230 | var timepickerCtrl = ctrls[0], ngModelCtrl = ctrls[1]; |
|
| 6231 | ||
| 6232 | if (ngModelCtrl) { |
|
| 6233 | timepickerCtrl.init(ngModelCtrl, element.find('input')); |
|
| 6234 | } |
|
| 6235 | } |
|
| 6236 | }; |
|
| 6237 | }]); |
|
| 6238 | ||
| 6239 | angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.debounce', 'ui.bootstrap.position']) |
|
| 6240 | ||