API/provideQubeeMemoryAdapter
provideQubeeMemoryAdapter
Provide a memory adapter to every list under an injector
In a component’s providers, the lists of that component and its children
share one in-memory state, which is gone with the component:
@Component({ providers: [provideQubeeMemoryAdapter()], template: `<app-tag-filters /><app-tag-table />`})export class TagPickerComponent {}Signature
Section titled “Signature”provideQubeeMemoryAdapter(initialSearch?: SearchParamsInput): Provider[]| Parameter | Type | Description |
|---|---|---|
initialSearch? |
SearchParamsInput |
The query the state starts from. |
Returns — The provider for QUBEE_LIST_ADAPTER