vendredi 22 mai 2015

How can an Ember.js {{#link-to}} become active when the URL updates in an eager transition?

Using Loading Substates, I've opted into eager transitions between my routes. This causes the URL to immediately update when a link to a route with a slow-to-resolve promise is clicked. However, the {{#link-to}} helper doesn't get its active class until after the model hook's promise has resolved and the transition has completed.

Is there a way to make the {{#link-to}}s become active automatically whenever the URL changes and the loading route is shown? Here's an example JSBin: http://ift.tt/1IPgkMh




Aucun commentaire:

Enregistrer un commentaire