dimanche 24 janvier 2016

via actions add a component to a another component with ember 2.0

I am currently learning Ember and I have come across a problem that I would like to solve.

I have a component that presents X amounts of buttons that are linked to actions on the component.

When one of these buttons are pressed the proper action should execute and in executing it should add a newly instantiated component to another component.

I realize that the proper way would not be to let component X know about component Y, but what does the proper solution look like?




Aucun commentaire:

Enregistrer un commentaire