How to access controllers from other controllers in EmberJS?

Posted by Andre Scott | Updated on

In this example, I have shared how to access controllers from other controllers in EmberJS? In the latest version of ember (ember-1.0.0-pre.3.js) you can do this by declaring controller dependencies. Once a dependency has been declared, it will be accessible via the controllers property. For example:

Since ApplicationController needs currentUser and users, those controllers are accessible via it’s controllers property and can be used from within the application template:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers