How to share a single Directive across multiple modules in AngularJS

后端 未结 3 1437
[愿得一人]
[愿得一人] 2021-01-30 22:11

As far as I know about AngularJS, this is one of the interesting libraries out today. I am slowly understanding the Angular power, and I am seriously loving it. I have a few dou

3条回答
  •  爱一瞬间的悲伤
    2021-01-30 22:52

    Can't you just create a div at the beginning of your app so that its scope will be as large as you need it?

    .... other controllers and html code here ....

    Anything inside the uber div may use the uber controller.

提交回复
热议问题