I know I must be missing something, but I created a simple test to exercise the use of the {{render "viewName" model}}
helper and I'm having trouble with it.
It works well except that in the view's controller I don't have access to a model property as indicated by the Ember documentation. Instead the controller's model property remains undefined.
Here is the fiddle that shows the issue: http://emberjs.jsbin.com/misiyaki/6/edit
As you can see I tested the model in the index template, and it works well. But when the ViewAView
is rendered, the associated ViewAController
does not have the specified model set in it. I tested it in the view's init method and it is not set there either. It is as if I had not specified any models in the helper.
What am I missing?
Thank you!!