angular.js - angularjs directive issue
滿天的星座
滿天的星座 2017-05-15 16:51:45
0
1
625

I have a doubt when using the command. If I have a select plug-in, I currently write it in the command and get the option data of the controller through the scope. But when the select triggers the event, different methods will be executed. . If this instruction is used in different places, do I need to write multiple instructions to distinguish different methods? Or write an instruction and then execute a different method somewhere? Are there any cases? Thanks

滿天的星座
滿天的星座

reply all(1)
小葫芦

See below: angular-smart-chartist directive plug-in. In the example given, multiple references to the directive appear on the same page, instead of writing multiple different directives.

In fact, the directive uses 'scope' to obtain a separate scope for it, making it possible to reuse it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template