Make Children Controller Aware of Parent


#1

When using the render helper, is there a way to pass more than one binding to the controller? For example, i want to {{render ItemChildrenController children}}, but i’d like the ItemChildrenController to also have a reference to the Item? Something like {{render ItemChildrenController children parentBinding=model}}.

Or, another tactic: Is there a way to intercept the model passed by render during ArrayController’s init so I could call {{render ItemChildrenController item}} and have the array controller setup the content from item.get('children')?


#2

You can have a try with the needs API.


#3

I’m currently using the needs api, and it works for my situation, but does that only work if the parent controller is a singleton?