import { provideDaffInMemoryRoutableObjects } from '@daffodil/driver/in-memory'
Registers routable objects from an in-memory driver with the routing system.
This function allows in-memory drivers to provide their entities (with URL properties) to enable automatic URL resolution. Each driver provides a resolver function that returns its entities with URL properties, along with a type identifier.
The resolver function runs in an injection context, which means you can use Angular's
inject() function within it to access services and dependencies.
function provideDaffInMemoryRoutableObjects(
type: string
resolver: DaffInMemoryRoutableObjectsResolver
): EnvironmentProviders
| Parameter | type: string |
|---|---|
| Description | The type identifier for these routable objects (e.g., "PRODUCTS") |
| Parameter | resolver: DaffInMemoryRoutableObjectsResolver |
|---|---|
| Description | A function that returns an array of entities with URL properties.
This function runs in an injection context, allowing use of |