0
{{#each posts}}
  {{view App.PostView controller=App.PostController}}
{{/each}}

but this is always getting parentView controller instead of PostController.

1 Answer 1

2

I think you miss putting App.PostController between double quotes. The controller have to be an instance, not a class here. So you have to instantiate App.PostController in your js code beafore using it in the template.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.