How to use the @spartacus/core.provideConfig function in @spartacus/core

To help you get started, we’ve selected a few @spartacus/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SAP / cloud-commerce-spartacus-storefront / projects / storefrontlib / src / shared / config / view-config.module.ts View on Github external
static forRoot(): ModuleWithProviders {
    return {
      ngModule: ViewConfigModule,
      providers: [
        provideConfig({
          view: {},
        }),
        {
          provide: ViewConfig,
          useExisting: Config,
        },
      ],
    };
  }
}
github SAP / cloud-commerce-spartacus-storefront / projects / storefrontlib / src / recipes / storefront.module.ts View on Github external
static withConfig(
    config?: StorefrontConfig
  ): ModuleWithProviders {
    return {
      ngModule: StorefrontModule,
      providers: [provideConfig(config)],
    };
  }
}
github SAP / cloud-commerce-spartacus-storefront / projects / storefrontlib / src / storefront.module.ts View on Github external
static withConfig(config?: StorefrontModuleConfig): ModuleWithProviders {
    return {
      ngModule: StorefrontModule,
      providers: [provideConfig(config), ...provideConfigFromMetaTags()],
    };
  }
}
github SAP / cloud-commerce-spartacus-storefront / projects / vendor / src / vendor.module.ts View on Github external
static withConfig(config?: YotpoConfig): ModuleWithProviders {
    return {
      ngModule: VendorModule,
      providers: [provideConfig(config)],
    };
  }
}
github SAP / cloud-commerce-spartacus-storefront / projects / storefrontlib / src / cms-structure / routing / routing.module.ts View on Github external
static forRoot(): ModuleWithProviders {
    return {
      ngModule: RoutingModule,
      providers: [provideConfig(defaultRoutingConfig)],
    };
  }
}
github SAP / cloud-commerce-spartacus-storefront / projects / storefrontlib / src / lib / storefront.module.ts View on Github external
static withConfig(config?: StorefrontModuleConfig): ModuleWithProviders {
    return {
      ngModule: StorefrontModule,
      providers: [provideConfig(config)]
    };
  }
}