New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
helper for highlighting current active link #51
Comments
I was doing like |
For ease of use: the active link will automatically get |
Oh yeah, now that's really Evan. 👍 |
Would it make sense to have an option to also have the class present of a child route is active? For example, if I have a 'users' link in my nav, I might want that to also be highlighted when I'm on 'users/:id' or 'users/create'. |
@JosephSilber I'll think about that, but it would introduce additional api surface to configure this behavior. In those cases it's probably better to do something csutom like |
Ah, actually, we can just add an additional auto class: Or, maybe a partial match should be the default, where exact match adds the class |
Have you any idea why the classes do not apply on the app first init ? Then when I navigate it updates itself! |
@manudurgoni not sure, it seems to be working correctly in the example (on initial load with a matched url). |
@yyx990803 You've right :) On initial load, my route path is : EDIT : ok I fixed my code :) |
@yyx990803 Any plans to include something like the |
@amirrustam FYI in 2.0 there's |
@fnlctrl 🙏 Thank you. I read right passed that when reading the docs. |
As 2.5.0+, Now just : Thanks @fnlctrl |
similar to ui-router's ui-sref-active
The text was updated successfully, but these errors were encountered: