-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
When I run the minified code, there's an error thrown:
Error: [$injector:unpr]
I've tested with Angular: 1.3.15
I think you need to add this after the "vinInputDirective" function.
vinInputDirective.$inject = ['vinValidatorService'];
https://github.com/rfink/angular-vin/blob/master/src/directives/vininput.js
So something like this:
`return {
scope: {
'ngModel': '=ngModel',
'vinIsValid': '=vinIsValid'
},
restrict: 'A',
require: 'ngModel',
link: vinInputController
};
}
vinInputDirective.$inject = ['vinValidatorService'];
angular.module('angular-vin')
.directive('vinInput', vinInputDirective);`
See this SO for why:
http://stackoverflow.com/questions/27727017/angular-minification-with-directive-controller
Metadata
Metadata
Assignees
Labels
No labels