app.component.ts
Main application entrypoint for services.
Angular expansion panels with Swagger pages of all applications.
selector | app-app |
imports |
NshmpLibNgTemplateComponent
NshmpLibNgAboutPageComponent
ContentComponent
AboutComponent
|
templateUrl | ./app.component.html |
styleUrl | ./app.component.scss |
Properties |
constructor()
|
Defined in app.component.ts:30
|
navigationList |
Default value : navigation()
|
Defined in app.component.ts:28
|
Navigation for menu |
title |
Default value : apps().services.display
|
Defined in app.component.ts:30
|
Application title |
import {Component} from '@angular/core';
import {NshmpLibNgAboutPageComponent} from '@ghsc/nshmp-lib-ng/about';
import {NshmpLibNgTemplateComponent} from '@ghsc/nshmp-lib-ng/nshmp';
import {apps} from '../../shared/utils/applications.utils';
import {navigation} from '../../shared/utils/navigation.utils';
import {AboutComponent} from './components/about/about.component';
import {ContentComponent} from './components/content/content.component';
/**
* Main application entrypoint for services.
*
* Angular expansion panels with Swagger pages of all applications.
*/
@Component({
imports: [
NshmpLibNgTemplateComponent,
NshmpLibNgAboutPageComponent,
ContentComponent,
AboutComponent,
],
selector: 'app-app',
styleUrl: './app.component.scss',
templateUrl: './app.component.html',
})
export class AppComponent {
/** Navigation for menu */
navigationList = navigation();
/** Application title */
title = apps().services.display;
constructor() {}
}
<nshmp-lib-ng-template [navigationList]="navigationList" [title]="title">
<app-content />
<!-- About page -->
<nshmp-lib-ng-about-page>
<app-about />
</nshmp-lib-ng-about-page>
</nshmp-lib-ng-template>