mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-19 08:50:13 +01:00
clean up
This commit is contained in:
parent
91c652166d
commit
669b3df4b5
35 changed files with 15 additions and 66 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue