projects/maplander/shared/src/lib/components/share/share.module.ts
Static forChild |
forChild()
|
Returns :
ModuleWithProviders
|
import {ModuleWithProviders, NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {ShareComponent} from './share.component';
import {ShareService} from './share.service';
import {MatButtonModule} from '@angular/material/button';
import {MatIconModule} from '@angular/material/icon';
@NgModule({
imports: [
CommonModule,
MatButtonModule,
MatIconModule
],
declarations: [ShareComponent],
entryComponents: [ShareComponent]
})
export class ShareModule {
static forChild(): ModuleWithProviders {
return {
ngModule: ShareModule,
providers: [ShareService]
};
}
}