Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4836

transitionTo() not applying 'active' class to link-to elements

$
0
0

@em.b wrote:

I am calling transitionTo() from within a route's willTransition() action hook under certain conditions. I provide transitionTo() an argument that references a nested route, e.g. 'home.users.details'.

The transition occurs, but the 'active' class does not get applied to any of the {{link-to}} helper elements. If I manually navigate to the desired route by clicking on the {{link-to}} helper elements, the active class does get applied.

Why isn't transitionTo() applying 'active' to the routes or subroutes that it is transitioning to? How to fix?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4836

Trending Articles