Skip to content
qubeejs/angular
API/provideQubeeInstance

provideQubeeInstance

function@qubeejs/angularsrc/lib/provide-qubee.ts

Providers for a component-scoped Qubee instance

Use this inside a standalone component’s providers: [...] to get a dedicated QubeeQueryBuilder (and its QubeeSignalStore / QubeePaginator collaborators) whose query-builder and pagination state does not bleed with the app-wide shared instance provided by provideQubee().

provideQubeeInstance(): Provider[]

Returns — A provider array to spread into a component’s providers

@Component({
standalone: true,
providers: [...provideQubeeInstance()]
})
export class MyFeatureComponent {
private readonly _qb = inject(QubeeQueryBuilder);
}

The driver, strategies, and options are inherited from the environment injector (provideQubee() at root), so only the store and the two services are re-created at the component level.