dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_LocationModule cluster_LocationModule_declarations cluster_LocationModule_imports cluster_LocationModule_exports cluster_LocationModule_providers LocationComponent LocationComponent LocationModule LocationModule LocationComponent->LocationModule LocationDirective LocationDirective LocationDirective->LocationModule LocationComponent LocationComponent LocationModule->LocationComponent LocationDirective LocationDirective LocationModule->LocationDirective AddressModule AddressModule AddressModule->LocationModule SearchBoxModule SearchBoxModule SearchBoxModule->LocationModule LocationService LocationService LocationService->LocationModule

File

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

Methods

Static forChild
forChild(agmConfig: LazyMapsAPILoaderConfigLiteral)
Parameters :
Name Type Optional
agmConfig LazyMapsAPILoaderConfigLiteral No
import {ModuleWithProviders, NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {MatButtonModule} from '@angular/material/button';
import {MatDialogModule} from '@angular/material/dialog';
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatIconModule} from '@angular/material/icon';
import {MatInputModule} from '@angular/material/input';
import {MatToolbarModule} from '@angular/material/toolbar';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {LocationComponent} from './location.component';
import {LocationService} from './location.service';
import {LocationDirective} from './location.directive';
import {SearchBoxModule} from '../../directives/search-box/search-box.module';
import {AgmCoreModule, LAZY_MAPS_API_CONFIG, LazyMapsAPILoaderConfigLiteral} from '@agm/core';
import {AddressModule} from '../address/address.module';

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    SearchBoxModule,
    AddressModule,
    MatToolbarModule,
    MatButtonModule,
    MatIconModule,
    MatDialogModule,
    MatInputModule,
    MatFormFieldModule,
    AgmCoreModule.forRoot()
  ],
  declarations: [
    LocationComponent,
    LocationDirective
  ],
  providers: [
    LocationService
  ],
  entryComponents: [
    LocationComponent
  ],
  exports: [
    LocationComponent,
    LocationDirective
  ]
})
export class LocationModule {
  static forChild(agmConfig: LazyMapsAPILoaderConfigLiteral): ModuleWithProviders {
    return {
      ngModule: LocationModule,
      providers: [
        LocationService,
        {
          provide: LAZY_MAPS_API_CONFIG,
          useValue: agmConfig
        }
      ]
    };
  }
}

result-matching ""

    No results matching ""