VueJS Attach active class to li tag not a tag

Hi I want to make the li have a class of active when the /support route is sent. Out of the box active class only applies tot he router-link aka a tag. Thanks!

 <li class="nav-item" >
                <router-link  to="/support" class="nav-link d-flex align-items-center justify-content-between">
                    <span class="sidebar-icon"
                      ><span class="fas fa-life-ring"></span

Read more here:

Content Attribution

This content was originally published by atx123n at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: