Skip to content

Directive is not working in strict DI mode  #29

@ghiscoding

Description

@ghiscoding

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions