Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
<header>
<app-toolbar (navToggle)="sidenav.toggle()"></app-toolbar>
</header>
<main class="app-content">
<mat-sidenav-container>
<mat-sidenav #sidenav role="navigation">
<mat-nav-list (click)="sidenav.toggle()">
<a *ngFor="let menu of menus" mat-list-item routerLinkActive="active" [routerLinkActiveOptions]="menu.options" [routerLink]="menu.link">
<mat-sidenav-container>
<mat-sidenav #sidenav role="navigation">
<mat-nav-list (click)="sidenav.toggle()">
<a *ngFor="let menu of menus" mat-list-item routerLinkActive="active" [routerLinkActiveOptions]="menu.options" [routerLink]="menu.link">
{{menu.title}}
</a>
</mat-nav-list>
</mat-sidenav>
<router-outlet></router-outlet>
</mat-sidenav-container>
</main>
</div>
</mat-nav-list>
</mat-sidenav>
<router-outlet></router-outlet>
</mat-sidenav-container>
</div>
7 changes: 0 additions & 7 deletions src/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@
}
}

.app-content {
min-height: 100%;
overflow: auto;
display: flex;
flex-direction: column;
}

mat-sidenav-container {
flex: 1 1 auto;
width: 100%;
Expand Down