Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. <mat-sidenav-container style="height: Calc(100vh - 64px)">
  2.  
  3. <mat-sidenav #sidenav mode="{{ (screenWidth > 840) ? 'side' : 'over'}}" opened>
  4.  
  5. <mat-toolbar>
  6. <mat-toolbar-row>
  7. <h2 class="toolbar-title">navigation</h2>
  8. </mat-toolbar-row>
  9. </mat-toolbar>
  10.  
  11. <mat-nav-list fxShow="true" fxHide.gt-md>
  12. <h2 matSubheader>toolbar menu</h2>
  13.  
  14. <a mat-list-item routerLink="/" style="height: 0;"></a>
  15.  
  16. <a mat-list-item [routerLink]="x.router" routerLinkActive="list-item-active" *ngFor="let x of toolbarMenuItems">
  17. <mat-icon matListIcon class="app-nav-list-icon" *ngIf="x.override !== true">{{ x.icon }}</mat-icon>
  18. <mat-icon matListIcon class="app-nav-list-icon lhIcon {{ x.icon }}" *ngIf="x.override === true"></mat-icon>
  19. <span>{{ x.title }}</span>
  20. </a>
  21. </mat-nav-list>
  22.  
  23. <mat-nav-list>
  24. <h2 matSubheader>basic nav shit</h2>
  25.  
  26. <a mat-list-item routerLink="/" style="height: 0;"></a>
  27.  
  28. <a mat-list-item [routerLink]="x.router" routerLinkActive="list-item-active" *ngFor="let x of sidenavMenuItems">
  29. <mat-icon matListIcon class="app-nav-list-icon" *ngIf="x.override !== true">{{ x.icon }}</mat-icon>
  30. <mat-icon matListIcon class="app-nav-list-icon lhIcon {{ x.icon }}" *ngIf="x.override === true"></mat-icon>
  31. <span>{{ x.title }}</span>
  32. </a>
  33. </mat-nav-list>
  34. </mat-sidenav>
  35.  
  36. <mat-sidenav-content>
  37. <router-outlet></router-outlet>
  38. </mat-sidenav-content>
  39. </mat-sidenav-container>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement