angular-summernote icon indicating copy to clipboard operation
angular-summernote copied to clipboard

Decorator callback doesn't fire

Open goldylucks opened this issue 4 years ago • 0 comments

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;
        },
      ]);
    },
  ])

goldylucks avatar May 28 '21 12:05 goldylucks