-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
I am using an abstract state to define an URL hierarchy. The abstract state is used as parent of a drop-down menu and should route to some child page. Using ui-router 0.3.1.
My menu:
<li class="dropdown" ui-sref-active="active" ui-sref="administration">
<a ui-sref="administration.user.list" class="dropdown-toggle" data-hover="dropdown">administration</a>
<ul class="dropdown-menu">
<li ui-sref-active="active"><a ui-sref="administration.user.list">users</a></li>
<li ui-sref-active="active"><a ui-sref="administration.group.list">groups</a></li>
</ul>
</li>
When I click on the administration entry, it shows me Error: Cannot transition to abstract state 'administration' and change to administration.user.list.
I can fix it with removing ui-sref="administration"
for the first li, but then there is no hightlighting for the root entry anymore if I select groups.
Is there any way to use abstract states to highlight nav entries?
Metadata
Metadata
Assignees
Labels
No labels