O'Reilly logo

Ember.js Web Development with Ember CLI by Suchit Puri

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Connecting controllers

Sometimes, especially in nested routes, the nested controller would want access to the model or data from the parent controller. The Ember.js framework provides us with the ability to link two or more controllers together so that the state of one controller can be accessed from the other one. Such a link between two controllers is not limited to only nested routes, but to any controller that wants to access another controller.

Let us see this in an example. We will continue with our preceding example of showing a list of products to end users. After creating a view to show all the products in a tabular form, let's move on to creating a page for an individual product and another one to show the reviews for a specific product. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required