Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static forRoot(): ModuleWithProviders {
return {
ngModule: ViewConfigModule,
providers: [
provideConfig({
view: {},
}),
{
provide: ViewConfig,
useExisting: Config,
},
],
};
}
}
static withConfig(
config?: StorefrontConfig
): ModuleWithProviders {
return {
ngModule: StorefrontModule,
providers: [provideConfig(config)],
};
}
}
static withConfig(config?: StorefrontModuleConfig): ModuleWithProviders {
return {
ngModule: StorefrontModule,
providers: [provideConfig(config), ...provideConfigFromMetaTags()],
};
}
}
static withConfig(config?: YotpoConfig): ModuleWithProviders {
return {
ngModule: VendorModule,
providers: [provideConfig(config)],
};
}
}
static forRoot(): ModuleWithProviders {
return {
ngModule: RoutingModule,
providers: [provideConfig(defaultRoutingConfig)],
};
}
}
static withConfig(config?: StorefrontModuleConfig): ModuleWithProviders {
return {
ngModule: StorefrontModule,
providers: [provideConfig(config)]
};
}
}