Sharing Top Content from the Angular-sphere.

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
[ad#post]


Select navigation menu base on page url in AngularJS | Ashish’s Blog

Comments are closed, but trackbacks and pingbacks are open.