ember.js: Unable to access the router instance at runtime
In the old router, it was possible to access the router instance via App.router, and also any instantiated controller like App.router.get("homeController"). This however yields undefined when using the new router, and it is not mentioned in the documentation.
Is this simply a deprecated behavior, or is there a better way to access the controller instances?
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 34 (16 by maintainers)
@darthdeus where at in your application are you trying to access the controller.
In the controller you do something like this:
in the context of a route you would use
thisDoes that help?