84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
现在我有多个未知module,需要共用一个directive,但在定义时需要指定module,我应该怎么定义公共的directive。可以定义一个全局的函数返回directive,但又不想污染全局环境,应该怎么做最合适?
Create a new module directly and define the directive in the module. Wherever you need this directive, can you just declare the dependency in the corresponding module?
Create a new module directly and define the directive in the module. Wherever you need this directive, can you just declare the dependency in the corresponding module?