question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I 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:closed
  • Created 4 years ago
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
classikdcommented, Nov 3, 2019

Same for me, quiet hard to manage active links. There is no reactivity when pages change

0reactions
ralyodiocommented, Apr 5, 2020

this still broken for me.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found