dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_PropertyCardModule cluster_PropertyCardModule_declarations cluster_PropertyCardModule_imports cluster_PropertyCardModule_exports PropertyCardComponent PropertyCardComponent PropertyCardModule PropertyCardModule PropertyCardComponent->PropertyCardModule PropertyCardComponent PropertyCardComponent PropertyCardModule->PropertyCardComponent AddressFormatModule AddressFormatModule AddressFormatModule->PropertyCardModule ImageErrorModule ImageErrorModule ImageErrorModule->PropertyCardModule OfferingTypeModule OfferingTypeModule OfferingTypeModule->PropertyCardModule PropertyTypeModule PropertyTypeModule PropertyTypeModule->PropertyCardModule

File

projects/maplander/components/src/lib/components/property-card/property-card.module.ts

Methods

Static forChild
forChild(isOPI?: boolean)
Parameters :
Name Type Optional
isOPI boolean Yes
import { ModuleWithProviders, NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {PropertyCardComponent} from './property-card.component';
import {RouterModule} from '@angular/router';
import {AddressFormatModule} from './../../pipes/address/address-format.module';
import {OfferingTypeModule} from './../../pipes/offering-type/offering-type.module';
import {PropertyTypeModule} from './../../pipes/property-type/property-type.module';
import {ImageErrorModule} from './../../directives/image-error/image-error.module';
import {MatButtonModule} from '@angular/material/button';
import {MatIconModule} from '@angular/material/icon';
import {PROPERTY_CARD_CONFIG_MODULE} from './token';

@NgModule({
  imports: [
    CommonModule,
    RouterModule,
    AddressFormatModule,
    PropertyTypeModule,
    OfferingTypeModule,
    ImageErrorModule,
    MatIconModule,
    MatButtonModule
  ],
  declarations: [
    PropertyCardComponent
  ],
  exports: [
    PropertyCardComponent
  ]
})
export class PropertyCardModule {
  static forChild(isOPI?: boolean): ModuleWithProviders {
    return {
      ngModule: PropertyCardModule,
      providers: [
        {
          provide: PROPERTY_CARD_CONFIG_MODULE,
          useValue: isOPI
        }
      ]
    };
  }
}

result-matching ""

    No results matching ""