jeudi 10 novembre 2016

Emberjs—pass reference of parent component to child in template

I am working on an ember 1.13 project an I would like to pass the parent component to its childs in a *.hbs file like so:


    


I have tried to use but that does not work. Adding:

get parent(){ return this; }

to the component definition does not work, too? How can I do that?




Aucun commentaire:

Enregistrer un commentaire