projects/maplander/components/src/lib/components/document-visor/document-visor.module.ts
Static forChild |
forChild()
|
Returns :
ModuleWithProviders
|
import {ModuleWithProviders, NgModule} from '@angular/core';
import { CommonModule } from '@angular/common';
import {MatButtonModule} from '@angular/material/button';
import {MatDialogModule} from '@angular/material/dialog';
import {MatIconModule} from '@angular/material/icon';
import {DocumentVisorComponent} from './document-visor.component';
import {DocumentVisorService} from './document-visor.service';
import {SafeUrlModule} from '@maplander/shared';
const MATERIAL = [
MatButtonModule,
MatDialogModule,
MatIconModule
];
@NgModule({
imports: [
CommonModule,
SafeUrlModule.forChild(),
MATERIAL
],
declarations: [
DocumentVisorComponent
],
exports: [
DocumentVisorComponent
],
entryComponents: [
DocumentVisorComponent
]
})
export class DocumentVisorModule {
static forChild(): ModuleWithProviders {
return {
ngModule: DocumentVisorModule,
providers: [
DocumentVisorService
]
};
}
}