header, isNavBarCollapsed observable: filter out undefined state that can occur when using AoT compilation

This commit is contained in:
Art Lowel
2016-12-13 10:14:47 +01:00
parent 54f3cbc41b
commit 2846dc9446
5 changed files with 15 additions and 4 deletions

View File

@@ -37,6 +37,13 @@ export class AppComponent implements OnDestroy, OnInit {
translate.setDefaultLang('en');
// the lang to use, if the lang isn't available, it will use the current loader to get them
translate.use('en');
this.onResize({
target: {
innerWidth: 800,
innerHeight: 600
}
});
}
ngOnInit() {