Skip to content

Error "Controller 'parent', required by directive 'child', can't be found!" after change from 0.2.7 to 0.2.8 #832

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
towr opened this issue Jan 27, 2014 · 3 comments
Labels

Comments

@towr
Copy link

towr commented Jan 27, 2014

I'm experiencing an odd error in the 0.2.8 ui-router, when I place initial content in a ui-view (for fallback when there's no javascript) If I have a parent directive with repeated child-directives that require the parent's controller, then I get the error Controller 'parent', required by directive 'child', can't be found! in the console.

I don't get these errors when I use the 0.2.7 version, so it's probably due to a recent change.

http://plnkr.co/edit/wz8Y3EkNrsH4V9guDUy4?p=preview

@timkindberg
Copy link
Contributor

I was able to reproduce. I pulled the parent/child elements out of the ui-view and they worked fine.

@meenie
Copy link
Contributor

meenie commented Mar 6, 2014

This is fixed #858 - Here is a plnkr with a version of angular-ui-router built with the new code: http://plnkr.co/edit/9l1bJZDrCo6bhOKWhj0T?p=preview - There are no errors anymore.

@meenie
Copy link
Contributor

meenie commented Mar 7, 2014

Closing. Please reopen if you are still having issues :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants