Skip to main content
Filter by
Sorted by
Tagged with
2 votes
2 answers
105 views

I have a navbar that the selected/active navitem is recognizable by an orange underline. However, when I open another navitem in a new tab (by rightclick), the default navitem is underlined and not ...
user6781's user avatar
  • 621
0 votes
1 answer
775 views

Object: I have a menu with a searchBarInput on InputValueChange => update the url by adding a key search with the input value => it work well but by doing that I destroyed the sidebar ...
Python's user avatar
  • 47
0 votes
1 answer
508 views

I have a base ClazzComponent, ClazzModule and ClazzRouting Module. The ClazzComponent is rendered through the primary <router-outlet> in my AppComponent. The ClazzComponent has a ...
Mike Bagnasco's user avatar
0 votes
1 answer
92 views

I need do parent link. I did, but sure it correct. When I click routerLinkActive="router-class" , child and parent link can to get class "router-class", but I when click on child ...
user348813's user avatar
0 votes
1 answer
2k views

I'm trying to developp a sidebar of a documentation who it links to elements on th same page <div class="mt-6"> <li class="relative"> &...
MAHA OUEGHLANI's user avatar
0 votes
1 answer
495 views

It’s all in the title, I’d like the first item of my menu to take the 'primary' style of angular material. Here is my code that works only when I clicked on a menu item <div class="menu&...
olivier's user avatar
  • 159
1 vote
1 answer
519 views

I want to set a class on a div when one of the routes inside that div is active. This works all fine with the routerLinkActive directive when I put links with a routerLink directive directly inside ...
Waterstraal's user avatar
1 vote
2 answers
710 views

Below web-link demonstrates the routerLinkActive id working when used as a boolean value for a distinct HTML element' [ngClass] https://stackblitz.com/edit/routerlinkactivesimple?file=src%2Fapp%2Fapp....
Caesarius's user avatar
  • 109
-1 votes
1 answer
72 views

This is the current router setup and it works fine. this is a lazy loaded module under the path search so the url's become as follows... search/all search/web search/guides search/user search/books ...
Mackelito's user avatar
  • 4,461
2 votes
1 answer
287 views

I came across a wired problem where I have an angular material sidebar and in that I have buttons used for routing the applications let me put the code below <div fxLayoutAlign="start stretch&...
kushal Baldev's user avatar
3 votes
0 answers
381 views

Is there any way to provide an access to ContentChildren which are inside ng-template? If you look at the example you see the issue - the routerLinkActive directive does not see any routerLink ...
constantant's user avatar
  • 1,308
2 votes
3 answers
29k views

I have some link like this <li routerLinkActive="active" class="nav-item"> <a [routerLink]="['contracts']" [queryParams]="{ activeOnly: false }" class="nav-link">Contracts</a> <...
Miomir Dancevic's user avatar
-2 votes
1 answer
442 views

The links below Works for me: <li routerLink="/profile/education" [routerLinkActive]="'active-link'">Education</li> <li routerLink="/profile/education" [routerLinkActive]="'active-...
Md Rafee's user avatar
  • 5,626
0 votes
1 answer
510 views

I cannot make the active button (router-link tag) to light up. Here is my code: <div class="bottom-buttons"> <span v-for="button in buttons" class=...
Linh Chi Nguyen's user avatar
0 votes
1 answer
2k views

I've created a page using angular material with sidebar and tab. Im using angular 7. Here is sample image -> sample image: When I navigate to content tab, is-active class no longer apply to ...
SKL's user avatar
  • 1,493
1 vote
1 answer
1k views

When I reload/refresh my app the routes in the menubar are displayed and all of the items are set to active. I have configured for the Routes: export const routes: Routes = [ { path: '', ...
LeO's user avatar
  • 5,401
2 votes
4 answers
5k views

<div class="menuItem mb-3" *ngFor="let menuItem of menuItems"> <a routerLink="{{menuItem.link}}" routerLinkActive="active"> <img src="{{menuItem.icon}}" alt="{{menuItem.name}...
Ande Mohit's user avatar
1 vote
1 answer
911 views

Using a route with children in it. The parent route is recipes.component and in it, I includes a recipe-list.component and the . The recipe-list.component utilizes the PrimeNG p-table and when you ...
amazonotter's user avatar
1 vote
1 answer
3k views

I am relatively new to Angular and am trying to get a highlight to work on my NavBar. I have been through some other articles but they are not quite helping. In my app-routing.ts file const routes: ...
PC Frank's user avatar
8 votes
1 answer
23k views

I am building a site using Angular 6 and have been stuck for a few days now on a problem. I am trying to change text color (list items) on a navbar based on the active page. I have seen examples on ...
R Shavers's user avatar
19 votes
6 answers
21k views

In my Angular 5 project I've got a bootstrap nav-bar menu. routerLinkActive does work nicely when the start of the path matches the routerlink of the menu, like: <li [routerLinkActive]="['active']"...
Sam's user avatar
  • 29.2k
0 votes
2 answers
2k views

I have an Angular, single-page-website with the next layout <body> <!-- Header --> <div class="header"> <a [href]="{{ '#' + page1_Id }}">Page1</a> <a [...
Gil Epshtain's user avatar
  • 9,991
0 votes
1 answer
569 views

I am working with routing and using routerLinkActive to make a link active. Link is not activated when using ngModel in html. This is the exact scenario.. In component I am calling web service which ...
Aakriti.G's user avatar
  • 686
2 votes
2 answers
3k views

I am working with routing and navigation. I am using [routerLinkActive]="['active']" to make a link active. It works fine when I navigate to other route. But when current page is refreshed, '...
Aakriti.G's user avatar
  • 686
2 votes
0 answers
1k views

After a successful login on the login page, the route changes to the "inbound" view, which has two tabs in the navbar, "inbound" and "outbound". I'd like for the "inbound" navtab to be already ...
tyler2cr's user avatar