Skip to content

Directive is not working in strict DI mode  #29

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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