chore: scroll active link into view in the demo app (#5979)

Scrolls to the active link in the demo app when the sidenav is opened. Previously it would jump back up to the first one. This isn't a huge issue, but is something that has been bugging me for a while.
This commit is contained in:
Kristiyan Kostadinov
2017-07-27 19:50:39 +03:00
committed by Andrew Seguin
parent 72106c9801
commit f28dc064c2
+3
View File
@@ -4,6 +4,9 @@
<a *ngFor="let navItem of navItems"
md-list-item
(click)="start.close()"
routerLinkActive
#routerLinkActiveInstance="routerLinkActive"
[attr.tabindex]="routerLinkActiveInstance.isActive ? 0 : -1"
[routerLink]="[navItem.route]">
{{navItem.name}}
</a>