-
Notifications
You must be signed in to change notification settings - Fork 3k
Add ui-sref-active-includes attribute #1254
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
Conversation
I think the whole point of ui-sref-active is that you don't have to test for an explicit state name. I'm not sure I understand the scenario you laid out in #1252, can you plunk it? If you're trying to highlight a UI element when any state under |
@christopherthielen but that's precisely what lots of people go and do. you have a top navbar, with a bunch of links to states (foo.index, bar.index, baz.index) and then within those there's a lot of child states of foo, bar and baz (foo.details, bar.moreinfo, baz.blahblah) but they do not descend from the index state. and we want the links to the top states to show active because you're in that 'section' of the app. how about so as an example, given a ui-sref to the following states would not apply active:
but any state that contains |
@wcandillon Can you clean up the PR please? What about |
I think this bug would be irrelevant if we had proper "redirect to default substate", yes?
|
Yes, assuming that 'app' is still a valid abstract state etc On Sat, Jun 6, 2015, 2:40 PM Chris Thielen [email protected] wrote:
|
I totally agree with @dougmoscrop I always have an abstract state for each section of my app as I'm doing some work under the hood for each section. Unfortunately I can't link to an abstract state and linking to one of the substates does not trigger |
For people searching and finding this issue:
|
fixes #1252