It's related to using implicit DI on the directive. Making the change so that the following line: angular.module("mightyDatepicker").directive("mightyDatepicker", function($compile) { ... }) becomes: angular.module("mightyDatepicker").directive("mightyDatepicker", ['$compile', function($compile) { ... }]) fixes the error.
It's related to using implicit DI on the directive. Making the change so that the following line:
angular.module("mightyDatepicker").directive("mightyDatepicker", function($compile) {
...
})
becomes:
angular.module("mightyDatepicker").directive("mightyDatepicker", ['$compile', function($compile) {
...
}])
fixes the error.