How would I implement "ngif" to a routerlink instead of creating a button?
example: *ngIf="auth.isAuthenticated()" (click)="auth.logout()"
To: <a [routerLink]="['/']">Logout
How would I implement "ngif" to a routerlink instead of creating a button?
example: *ngIf="auth.isAuthenticated()" (click)="auth.logout()"
To: <a [routerLink]="['/']">Logout