-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathapp.component.html
37 lines (33 loc) · 1.43 KB
/
app.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<mat-sidenav-container class="sidenav-container">
<mat-sidenav #drawer class="sidenav" fixedInViewport [autoFocus]="false">
<mat-toolbar>Client</mat-toolbar>
<mat-nav-list class="sidenav-list" role="navigation">
<!-- Side navigation links -->
<a mat-list-item routerLink="/" routerLinkActive="drawer-list-item-active"
#routerLinkActiveInstance="routerLinkActive" [routerLinkActiveOptions]="{exact: true}" (click)="drawer.close()">
<mat-icon matListItemIcon>home</mat-icon>
Home
</a>
<a mat-list-item routerLink="/users" routerLinkActive="drawer-list-item-active" (click)="drawer.close()">
<mat-icon matListItemIcon>people</mat-icon>
Users
</a>
<a mat-list-item routerLink="/companies" routerLinkActive="drawer-list-item-active" (click)="drawer.close()">
<mat-icon matListItemIcon>business</mat-icon>
Companies
</a>
</mat-nav-list>
</mat-sidenav>
<mat-sidenav-content>
<mat-toolbar color="primary">
<button type="button" aria-label="Toggle sidenav" mat-icon-button (click)="drawer.toggle()" onclick="blur()"
class="sidenav-button">
<mat-icon aria-label="Side nav toggle icon">menu</mat-icon>
</button>
<span class="app-title">{{title}}</span>
</mat-toolbar>
<div class="main-content mat-typography">
<router-outlet></router-outlet>
</div>
</mat-sidenav-content>
</mat-sidenav-container>