dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_ShareModule cluster_ShareModule_declarations ShareComponent ShareComponent ShareModule ShareModule ShareComponent->ShareModule

File

projects/maplander/shared/src/lib/components/share/share.module.ts

Declarations

EntryComponents

Methods

Static forChild
forChild()
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]
    };
  }
}

result-matching ""

    No results matching ""