How to access a parent model within a nested index route using ember.js?

Posted by Jessica Taylor | Updated on

Want to access a parent model within a nested index route using ember.js? To set the model for the DetailIndexRouter, override it’s model hook and then use modelFor(‘detail’) to access the content item from the parent route.

For example:


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