jeudi 19 février 2015

How to run code when changing templates in Ember?

In my project I would like for some code:



$("#panelAccommodation").hide();
$("#panelFlight").hide();


to run when changing templates. What I want is for these panels which have the ids I showed above to be hidden when a user changes to the template they are on and will only show when clicked on but that code I've already done with an action on the controller. Any ideas on how to do this?





Aucun commentaire:

Enregistrer un commentaire