2021-12-29 06:28:51 +00:00
|
|
|
import { Component, OnDestroy } from '@angular/core';
|
2021-12-09 14:24:42 +00:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|