Last active
May 30, 2018 04:16
-
-
Save edy/6954733 to your computer and use it in GitHub Desktop.
AngularJS directive to mark navigation menu items as active
Hi Edy,
I tried using this API under one of the applications we build for highlighting (adding an 'active' class) to the <li>
but it didn't show-up anything. Apart of adding this directive to the controller and mentioning the nav-menu="active"
for <ul>
do we need to do any changes into the UI? What is the $routeChangeStart
and when it will be called.?
Can you please help me?
Thanks and Regards,
Harish.Varada
-- ul.menu-level-1
-- li.menu-item
-- h3.menu-title
-- li.menu-item
-- h3.menu-header
-- ul.menu-level-2
-- li.menu-item
-- h3.menu-title
-- li.menu-item
-- h3.menu-header
-- ul.menu-level-3
-- ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks very much, works great with my Phonegap app