change default state of sidebar (#101)

This commit is contained in:
Anwesh Nayak
2018-07-06 06:02:15 +05:30
committed by GitHub
parent 96b53f4f30
commit 77b1904a2c
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -23,6 +23,7 @@ export class ShellComponent implements OnInit {
private progressBarService: ProgressBarService) { }
ngOnInit() {
this.sidenavCollapsed = true;
this.progressBarService.updateProgressBar.subscribe((mode: string) => {
this.progressBarMode = mode;
});
@@ -40,6 +40,7 @@ export class ToolbarComponent implements OnInit {
constructor(private breakpointObserver: BreakpointObserver) { }
ngOnInit() {
this.sidenavCollapsed = !this.sidenavCollapsed;
this.isHandset$.subscribe(isHandset => {
this.isHandset = isHandset;
});