I'm pretty new to angular js. Is there a way to make two directives communicate with each other? I've tried using
require: "^mydirective"
and for some odd reason that's not working
I'm pretty new to angular js. Is there a way to make two directives communicate with each other? I've tried using
require: "^mydirective"
and for some odd reason that's not working
About the directive hints:
[?][^][directiveName].
^ is used to specify which directive controller should be used("inherited from"). So for example a directive <column-item> needs to find the parent directive controller <crtl-grid>.
bottom line ^ indicates angular to seek up the DOM to find the parent directive.
? = it indicates angular that the directive is optional and angular will not throw an exception if not found.