What does “require” of directive definition object take?
The require parameter, including its prefixes, is documented on the $compile API reference page. Require another directive and inject its controller as the fourth argument to the linking function. The require takes a string name (or array of strings) of the directive(s) to pass in. If an array is used, the injected argument will be … Read more