Config updated
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { Component, OnDestroy } from '@angular/core';
|
||||
import { AppComponent } from './app.component';
|
||||
import { AppMainComponent } from './app.main.component';
|
||||
import { Subscription } from 'rxjs';
|
||||
import { MenuItem } from 'primeng/api';
|
||||
@@ -8,17 +7,9 @@ import { MenuItem } from 'primeng/api';
|
||||
selector: 'app-topbar',
|
||||
templateUrl: './app.topbar.component.html'
|
||||
})
|
||||
export class AppTopBarComponent implements OnDestroy{
|
||||
|
||||
subscription: Subscription;
|
||||
export class AppTopBarComponent {
|
||||
|
||||
items: MenuItem[];
|
||||
|
||||
constructor(public app: AppComponent, public appMain: AppMainComponent) {}
|
||||
|
||||
ngOnDestroy() {
|
||||
if (this.subscription) {
|
||||
this.subscription.unsubscribe();
|
||||
}
|
||||
}
|
||||
constructor(public appMain: AppMainComponent) { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user