O'Reilly logo
  • hao wang thinks this is interesting:

The require property is used to inject another directive controller as the fourth parameter of the link function. It means that using this property, we are able to communicate with the other directives.


Cover of AngularJS Essentials


Require 属性用于注入其它的指令在 link 方法的第四个参数上。意思就是,使用这个属性,我们可以与其它的指定交流。