angular-bootstrap3-datepicker icon indicating copy to clipboard operation
angular-bootstrap3-datepicker copied to clipboard

Directive is not working in strict DI mode

Open ghiscoding opened this issue 9 years ago • 0 comments

Since I use bundling, I enable the ng-strict-di mode and I saw that your directive doesn't support it. I had to wrap your directive with ["di1", ... function(di1){ }]);

Basically the code changes to this

dp.directive('ngBs3Datepicker', ['$compile', function($compile) {  // added:  ['$compile', 
...
}]); // added::  ]

After that it works correctly and can be minified without issues.

ghiscoding avatar Sep 07 '16 20:09 ghiscoding