3.8/API/provideNgQubeeInstance
provideNgQubeeInstance
ArchivedThese are the docs for ng-qubee 3.8. Read the 4.0 docs for @qubeejs/angular.
provideNgQubeeInstance():
Provider[]
Defined in: src/lib/provide-ngqubee.ts:128
Providers for a component-scoped NgQubee instance
Use this inside a standalone component’s providers: [...] to get a
dedicated NgQubeeService (and its NestService / PaginationService
collaborators) whose query-builder and pagination state does not bleed
with the app-wide shared instance provided by provideNgQubee().
Returns
Section titled “Returns”Provider[]
A provider array to spread into a component’s providers
Usage Notes
Section titled “Usage Notes”@Component({ standalone: true, providers: [...provideNgQubeeInstance()]})export class MyFeatureComponent { constructor(private _qb: NgQubeeService) {}}The driver, strategies, and options are inherited from the environment
injector (provideNgQubee() at root), so only the service instances are
re-created at the component level.