Skip to content

Decorator callback doesn't fire #223

@goldylucks

Description

@goldylucks

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

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