I have to show the 'coach' field from IndexController transformed by AController:
{{!view App.AView coach | A }}
To get the result I've used the workaround:
{{! aList = [coach] }}
{{#each a in aList itemController = "A"}}
{{view App.AView controllerBinding = "a"}}
{{/each}}
The view A cannot directly render data from the coach field. The field should be decorated by AController.
I would appreciate any help or guidance:)
Aucun commentaire:
Enregistrer un commentaire