|
6 | 6 | [attr.role]="(isHandset$ | async) ? 'dialog' : 'navigation'"
|
7 | 7 | [mode]="(isHandset$ | async) ? 'over' : 'side'"
|
8 | 8 | [opened]="(isHandset$ | async) === false"
|
9 |
| - > |
| 9 | + > |
10 | 10 | <mat-toolbar>ngx-three</mat-toolbar>
|
11 | 11 | <mat-nav-list>
|
12 |
| - <a mat-list-item *ngFor="let route of routes" [routerLink]="route.path">{{ |
13 |
| - route.data.title |
14 |
| - }}</a> |
| 12 | + @for (route of routes; track route) { |
| 13 | + <a mat-list-item [routerLink]="route.path">{{ |
| 14 | + route.data.title |
| 15 | + }}</a> |
| 16 | + } |
15 | 17 | </mat-nav-list>
|
16 | 18 | </mat-sidenav>
|
17 | 19 | <mat-sidenav-content class="content">
|
18 | 20 | <mat-toolbar color="primary">
|
19 |
| - <button |
20 |
| - type="button" |
21 |
| - aria-label="Toggle sidenav" |
22 |
| - mat-icon-button |
23 |
| - (click)="drawer.toggle()" |
24 |
| - *ngIf="isHandset$ | async" |
25 |
| - > |
26 |
| - <mat-icon aria-label="Side nav toggle icon">menu</mat-icon> |
27 |
| - </button> |
| 21 | + @if (isHandset$ | async) { |
| 22 | + <button |
| 23 | + type="button" |
| 24 | + aria-label="Toggle sidenav" |
| 25 | + mat-icon-button |
| 26 | + (click)="drawer.toggle()" |
| 27 | + > |
| 28 | + <mat-icon aria-label="Side nav toggle icon">menu</mat-icon> |
| 29 | + </button> |
| 30 | + } |
28 | 31 | <span>ngx-three-demo</span>
|
29 | 32 | <span class="toolbar-spacer"></span>
|
30 |
| - <button |
31 |
| - mat-button |
32 |
| - *ngIf="this.editorService.urls.length" |
33 |
| - (click)="this.editorService.toCodeSandbox($event)" |
34 |
| - href="#" |
35 |
| - > |
36 |
| - <mat-icon>crop_din</mat-icon> |
37 |
| - CodeSandbox |
38 |
| - </button> |
39 |
| - <button |
40 |
| - mat-button |
41 |
| - *ngIf="this.editorService.urls.length" |
42 |
| - (click)="this.editorService.toStackblitz($event)" |
43 |
| - href="#" |
44 |
| - > |
45 |
| - <mat-icon>bolt</mat-icon> |
46 |
| - Stackblitz |
47 |
| - </button> |
| 33 | + @if (this.editorService.urls.length) { |
| 34 | + <button |
| 35 | + mat-button |
| 36 | + (click)="this.editorService.toCodeSandbox($event)" |
| 37 | + href="#" |
| 38 | + > |
| 39 | + <mat-icon>crop_din</mat-icon> |
| 40 | + CodeSandbox |
| 41 | + </button> |
| 42 | + } |
| 43 | + @if (this.editorService.urls.length) { |
| 44 | + <button |
| 45 | + mat-button |
| 46 | + (click)="this.editorService.toStackblitz($event)" |
| 47 | + href="#" |
| 48 | + > |
| 49 | + <mat-icon>bolt</mat-icon> |
| 50 | + Stackblitz |
| 51 | + </button> |
| 52 | + } |
48 | 53 | </mat-toolbar>
|
49 | 54 | <!-- Add Content Here -->
|
50 | 55 | <div class="main-route-content">
|
|
0 commit comments