This commit is contained in:
nixa 2016-04-29 17:23:33 +03:00
parent 91c652166d
commit 669b3df4b5
35 changed files with 15 additions and 66 deletions

View file

@ -15,7 +15,7 @@ require("!style!css!sass!./theme/sass/_ionicons.scss");
/*
* App Component
* Top Level Component
* TODO: whey the header and footer are not implemented?
* TODO: why the header and footer are not implemented?
*/
@Component({
selector: 'app',
@ -45,9 +45,7 @@ require("!style!css!sass!./theme/sass/_ionicons.scss");
},
])
export class App {
angularclassLogo = 'assets/img/angularclass-avatar.png';
name = 'Angular 2 Webpack Starter';
url = 'https://twitter.com/AngularClass';
isMenuCollapsed: boolean = false;
private _sidebarStateSubscription: Subscription;
@ -56,21 +54,8 @@ export class App {
this._sidebarStateSubscription = this._sidebarStateService.getStateStream().subscribe((isCollapsed) => this.isMenuCollapsed = isCollapsed);
}
ngOnInit() {
console.log('Initial App State');
}
ngOnDestroy(){
// prevent memory leak when component destroyed
this._sidebarStateSubscription.unsubscribe();
}
}
/*
* Please review the https://github.com/AngularClass/angular2-examples/ repo for
* more angular app examples that you may copy/paste
* (The examples may not be updated as quickly. Please open an issue on github for us to update it)
* For help or questions please contact us at @AngularClass on twitter
* or our chat on Slack at https://AngularClass.com/slack-join
*/