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.
Directives that require a parent controller should be able to inject those parents into their own controller.
Currently it is possible to get controllers on parent elements in the link function. It would be nice if $compile made these parent controllers injectable into that directives controller. The current workaround would be to add the controller to the scope in the link function, which the controller can also access.
Expected functionality is in this plunker. Expected behavior is that there is no error and blah is injected into blah2. Actual functionality an error occurs saying blahProvider cannot be found.
Directives that require a parent controller should be able to inject those parents into their own controller.
Currently it is possible to get controllers on parent elements in the link function. It would be nice if $compile made these parent controllers injectable into that directives controller. The current workaround would be to add the controller to the scope in the link function, which the controller can also access.
Expected functionality is in this plunker. Expected behavior is that there is no error and blah is injected into blah2. Actual functionality an error occurs saying blahProvider cannot be found.
http://plnkr.co/edit/QXnplKN0asljpKif1qzm?p=preview
The text was updated successfully, but these errors were encountered: