samedi 2 mai 2015

View helper - how to use controllerBinding

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:)

http://ift.tt/1DLvUQR




Aucun commentaire:

Enregistrer un commentaire