AngularJS Multiple Directive Resource Contention

后端 未结 2 2064
清酒与你
清酒与你 2021-02-09 11:31

I am trying to build a directive with angular.

Here is the plunker

I wanted to split it into 3 directives:

  • Top, grand-parent directive. - many
2条回答
  •  有刺的猬
    2021-02-09 11:57

    Just in case anyone else comes here, you can also get this error if you have a template and templateUrl in the same directive.

    i.e:

    ...
            template: '
    Hello world
    ', templateUrl: "MyTemplate.html", ...

    Hope that helps someone, the error message doesn't immediately point you to this.

提交回复
热议问题