NavMenu

Last but not least, we need to let our users know that they have to navigate to the LoginComponent even if they want to create a new account. To do that, open the navmenu.component.html template file and update the Login label as follows:

[...]<li *ngIf="!auth.isLoggedIn()"    [routerLinkActive]="['link-active']">    <a [routerLink]="['/login']">        <span class='glyphicon glyphicon-log-in'></span> Login /                                                          Register    </a></li>[...]

Get ASP.NET Core 2 and Angular 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.