Select navigation menu base on page url in AngularJS
- I come across a scenario in my current angular project where I need to select navigation menu base on page url.
- Posted in AngularJS Tagged angularjs , navigation Leave a comment
- Sorry, your blog cannot share posts by email.
Read the full article, click here.
@a5hpat: “Navigation menu base on page url in #AngularJS”
Using $location.path() we get the current route. The substring operation removes the leading slash (/) and converts /home to home
Select navigation menu base on page url in AngularJS | Ashish’s Blog