
<mat-toolbar>
    <button mat-button routerLink="/">App</button>
    <button mat-button routerLink="/entries">Entries</button>
    <button mat-button routerLink="/new-entry">Create Entry</button>
    <span style="flex: 1 1 auto"></span>
    <button mat-button *ngIf="auth.isAuthenticated" >Welcome, {{auth.getUserName}}</button>
    <button mat-button *ngIf="auth.isAuthenticated" (click)="auth.logout()" >Logout</button>
    <button mat-button *ngIf="!auth.isAuthenticated" routerLink="/register">Register</button>
    <button mat-button *ngIf="!auth.isAuthenticated" routerLink="/login">Login</button>
</mat-toolbar>


