vendredi 7 juillet 2017

Ember: Should I call transition from a controller or component

I was wondering what the best practices around transition to another route in Ember. Currently in my controller, I call the ember data store then transition to another route using transitionToRoute function but with the new focus components these days I saw you an inject the router as a service inside your component. Is this where I should be moving this logic or controller is still right place for this?




Aucun commentaire:

Enregistrer un commentaire