import { provideDaffInMemoryDriver } from '@daffodil/driver/in-memory'
Configures the Angular in-memory web API with Daffodil backend services.
function provideDaffInMemoryDriver(
config: DaffInMemoryDriverConfig = DAFF_IN_MEMORY_DRIVER_CONFIG_DEFAULT
...backends: Type<DaffInMemoryBackendInterface>[]
): EnvironmentProviders[]
| Parameter | config: DaffInMemoryDriverConfig |
|---|---|
| Default | DAFF_IN_MEMORY_DRIVER_CONFIG_DEFAULT |
| Description |
| Parameter | backends: Type<DaffInMemoryBackendInterface>[] |
|---|---|
| Description |
bootstrapApplication(AppComponent, {
providers: [
provideDaffInMemoryDriver(
{ delay: 300 },
DaffProductInMemoryBackendService,
DaffCartInMemoryBackendService
)
]
});
bootstrapApplication(AppComponent, {
providers: [
provideDaffInMemoryDriver(
{ delay: 300 },
DaffProductInMemoryBackendService,
DaffCartInMemoryBackendService
)
]
});