active route?
See original GitHub issueI need to create this base on the active route:
<li class="active"><a href="/dashboard">Dashboard</a></li>
Is there a simple way to do this?
Issue Analytics
- State:
- Created 4 years ago
- Comments:19 (6 by maintainers)
Top Results From Across the Web
In Angular, how do you determine the active route?
You can check the current route by injecting the Location object into your controller and checking the path() ...
Read more >ActivatedRoute - Angular
Provides access to information about a route associated with a component that is loaded in an outlet. Use to traverse the RouterState tree...
Read more >Activating Routes with RouterLink in Angular - Pluralsight
Routing in Angular helps navigate from one view to another as users perform tasks in web apps. In this guide you will learn...
Read more >How to get current route URL in Angular
Steps to get current route URL in Angular. 1. Import Router,NavigationEnd from angular/router and inject in the constructor. 2.
Read more >How to determine active route in AngularJS ? - GeeksforGeeks
Approach: To determine which is the active route at any moment in AngularJS this can be achieved by using $on() & $location.path() method....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same for me, quiet hard to manage active links. There is no reactivity when pages change
this still broken for me.