-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat(uiSrefActive): allow active & active-eq on same element #2012
Conversation
Seems legit.
So, all the extra calls to |
The calls to That being said, running I am honestly not familiar enough with Angular pre 1.2.x versions to understand why |
@joshuahiggins No, it's fine, I was just checking. Thanks for the detailed explanation. @christopherthielen Looks good to me. You? I don't think it should interfere with any future plans. |
👍 |
feat(uiSrefActive): allow active & active-eq on same element
Any thoughts on when the next minor version release might be? |
This pull request will allow the usage of both
ui-sref-active
andui-sref-active-eq
on the same element.One use case includes menus with expanding states where a parent element can be both
active
andopen
, such as in this example:When the account child views are active, the parent view should have a class of "open". However, when the parent is active, then the parent element should have both "open" and "active" classes.
This pull request exposes and squashes a race condition bug that's present today, #1997.
I apologize that this is a duplicate of a pull request I previously closed. I trashed that request due to failing tests before learning the quirks of
$timeout.flush()
in Karma. After digging around, I noticed that you had a comment explaining a workaround. Reopened after getting all the tests sorted out and passing.