Angular Material
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
<div>
|
||||
<img src="/assets/img/logo.png" />
|
||||
|
||||
<div *ngIf="name; then thenBlock; else elseBlock"></div>
|
||||
<ng-template #thenBlock>
|
||||
{{ name }}
|
||||
<button class="btn btn-default" (click)="logout()">Logout</button>
|
||||
</ng-template>
|
||||
<ng-template #elseBlock>
|
||||
<button class="btn btn-default" (click)="login()">Login</button>
|
||||
</ng-template>
|
||||
|
||||
</div>
|
||||
<mat-grid-list cols="4" rowHeight="4:1">
|
||||
<mat-grid-tile colspan="3" rowspan="4">
|
||||
<img width="100%" src="/assets/img/logo.png" />
|
||||
</mat-grid-tile>
|
||||
<mat-grid-tile colspan="1" rowspan="2">
|
||||
<div *ngIf="name; then thenBlock; else elseBlock"></div>
|
||||
<ng-template #thenBlock>
|
||||
{{ name }}
|
||||
<button mat-raised-button class="btn btn-default" (click)="logout()">Logout</button>
|
||||
</ng-template>
|
||||
<ng-template #elseBlock>
|
||||
<button mat-raised-button class="btn btn-default" (click)="login()">Login</button>
|
||||
</ng-template>
|
||||
</mat-grid-tile>
|
||||
</mat-grid-list>
|
||||
|
||||
Reference in New Issue
Block a user