add template
This commit is contained in:
24
src/app/app.topbar.component.ts
Normal file
24
src/app/app.topbar.component.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user