We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b334598 commit 1a056c5Copy full SHA for 1a056c5
projects/train-platform/src/app/navbar/navbar.component.css
@@ -22,6 +22,11 @@ li {
22
padding-right: 0.5rem;
23
}
24
25
+.active-nav-item {
26
+ cursor: default;
27
+ text-decoration: none;
28
+}
29
+
30
.page-options {
31
display: flex;
32
flex-direction: row;
projects/train-platform/src/app/navbar/navbar.component.html
@@ -1,7 +1,7 @@
1
<nav>
2
<ul>
3
<li>
4
- <a routerLink="/">{{ "navbar.home" | translate }}</a>
+ <a routerLink="/" routerLinkActive="active-nav-item" [routerLinkActiveOptions]="{exact: true}">{{ "navbar.home" | translate }}</a>
5
</li>
6
</ul>
7
<div class="page-options">
0 commit comments