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.
The documentation has the following to say about the ?^ modifier on a directive's require parameter (emphasis mine):
?^ - Attempt to locate the required controller _by searching the element's parents_ or pass null to the link fn if not found.
However, if a directive is nested within itself, such as in a recursive menu structure, the require will find its own controller, rather than searching through its parents. E.g.
The if the sub level menu item requires the ?^menuItem controller, it should get passed its parent controller via the link function. This is vital for basic use-cases around nestable controls that need to register and communicate with their parents. However, instead, it gets its own controller.
The documentation has the following to say about the
?^
modifier on a directive'srequire
parameter (emphasis mine):However, if a directive is nested within itself, such as in a recursive menu structure, the require will find its own controller, rather than searching through its parents. E.g.
The if the sub level menu item requires the
?^menuItem
controller, it should get passed its parent controller via the link function. This is vital for basic use-cases around nestable controls that need to register and communicate with their parents. However, instead, it gets its own controller.This problem is demonstrated in the following plunkr: http://plnkr.co/edit/76LU3c?p=preview
The text was updated successfully, but these errors were encountered: