I currently have an ember 1.13 application that exists of a large table, each cell in this table has a tooltip with more information. Currently this is implemented using views and a controller, so when a cell is hovered, it calls back to the controller and dynamically load the correct tooltip.
However now comes 2.0, where controllers and views are deprecated in favor of Components. I can't pass the controller to the component, since this ember prevents me from doing this. And passing the tooltip when the cell is created provides too much overhead since it then becomes eager loading.
What would be the correct way to implement the behaviour I want in a Component pattern? I've been looking at Ember services but I'm not 100% sure this is the correct solution to my problem.
Aucun commentaire:
Enregistrer un commentaire