You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Hi, this is a duplicate of #4518 and there's a pull for allowing this in #4540. If you post in these issues, it will (slightly) enhance the chance that they will be merged. In the meantime you can use element.parent().controller( 'myDir' );. or a variant of that.
Implement option to strengthen require '^' operator, by adding another '^'.
When a second '^' is used, the controller will only search parent nodes for the
matching controller, and will throw or return null if not found, depending on
whether or not the requirement is optional.
Closes#4518Closes#4540Closes#8240Closes#8511
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When nesting the same directive it is not possible to get the parent directives controller.
Here is a full JSFiddle: http://jsfiddle.net/R2Ycd/2/
The issue is in the following line in getControllers function in compile.js.
The inheritedData retrieval method will look locally first. It should start with the parent first since '^' was specified.
The text was updated successfully, but these errors were encountered: