Skip to content

Commit

Permalink
fix(annotations): Add missing inject annotation to the DirectiveContr…
Browse files Browse the repository at this point in the history
…oller

Without this annotation, the minified code will not work properly. Reported by @mattlewis92

Closes #271
  • Loading branch information
dalelotts committed Feb 1, 2016
1 parent b88f53f commit 7e0eca9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/datetimepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

function DatetimepickerDirective(defaultConfig, configurationValidator) {

return {
var directiveDefinition = {
bindToController: false,
controller: DirectiveController,
controllerAs: 'dateTimePickerController',
Expand All @@ -46,6 +46,8 @@
templateUrl: 'templates/datetimepicker.html'
};

DirectiveController.$inject = ['$scope', '$element', '$attrs'];

function DirectiveController($scope, $element, $attrs) {
// Configuration
var ngModelController = $element.controller('ngModel');
Expand Down Expand Up @@ -425,6 +427,8 @@
}
}
}

return directiveDefinition;
}

function DateTimePickerConfigProvider() {
Expand Down

0 comments on commit 7e0eca9

Please sign in to comment.