angular-summernote
angular-summernote copied to clipboard
Decorator callback doesn't fire
I want to decorate the directive with default options, but the decorator CB never fires. I have other directives I'm decorating in the same way and they do work.
Any ideas? Thanks for the awesome project!
angular
.module('myModule', ['summernote'])
.config([
"$provide",
function ($provide) {
console.log("$provide"); // this logs
$provide.decorator("summernoteDirective", [
"$delegate",
function ($delegate) {
console.log("$delegate", $delegate);// doesn't log
// decorate with defaults
return $delegate;
},
]);
},
])