Skip to content

Commit 61a5a0b

Browse files
authored
Merge pull request mgechev#1212 from Nightapes/routing
Add highlighting of active route.
2 parents 136cd15 + 72009c8 commit 61a5a0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<nav>
2-
<a [routerLink]="['/']">HOME</a>
3-
<a [routerLink]="['/about']">ABOUT</a>
2+
<a [routerLink]="['/']" [routerLinkActive]="['router-link-active']" [routerLinkActiveOptions]="{exact:true}">HOME</a>
3+
<a [routerLink]="['/about']" [routerLinkActive]="['router-link-active']" [routerLinkActiveOptions]="{exact:true}">ABOUT</a>
44
</nav>

0 commit comments

Comments
 (0)