25 lines
634 B
TypeScript
25 lines
634 B
TypeScript
|
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';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'app-topbar',
|
||
|
templateUrl: './app.topbar.component.html'
|
||
|
})
|
||
|
export class AppTopBarComponent implements OnDestroy{
|
||
|
|
||
|
subscription: Subscription;
|
||
|
|
||
|
items: MenuItem[];
|
||
|
|
||
|
constructor(public app: AppComponent, public appMain: AppMainComponent) {}
|
||
|
|
||
|
ngOnDestroy() {
|
||
|
if (this.subscription) {
|
||
|
this.subscription.unsubscribe();
|
||
|
}
|
||
|
}
|
||
|
}
|