@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
21 lines (17 loc) • 630 B
text/typescript
import { Component, OnDestroy, OnInit } from '@angular/core';
import { AppContextService, NavigationService } from '@microsoft/windows-admin-center-sdk/angular';
({
selector: 'sme-root',
templateUrl: './app.component.html'
})
export class AppComponent implements OnDestroy, OnInit {
constructor(
private appContext: AppContextService, private navigationService: NavigationService) {
}
public ngOnInit(): void {
this.appContext.ngInit({ navigationService: this.navigationService });
}
public ngOnDestroy() {
this.appContext.ngDestroy();
}
}