import { Component , OnDestroy , OnInit } from '@angular/core' ; import { AppContextService , AuthorizationService , NavigationService } from '@microsoft/windows-admin-center-sdk/angular' ; import { ContextMenu } from 'primeng/primeng' ; import { Observable } from 'rxjs' ; @ Component ( { selector : 'sme-root' , templateUrl : './app.component.html' } ) export class AppComponent implements OnDestroy , OnInit { constructor ( private appContext , private navigationService ) { } public ngOnInit ( ) { this . appContext . ngInit ( { navigationService : this . navigationService } ) ; } public ngOnDestroy ( ) { this . appContext . ngDestroy ( ) ; } }