Skip to content
qubeejs/angular
API/buildQubeeProviders

buildQubeeProviders

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

Build the core provider list shared by provideQubee() and QubeeModule.forRoot()

Calls the driver definition’s three factories — request strategy, response strategy, response options — exactly as the core’s createQubee() does, and exposes the results through injection tokens so that provideQubeeInstance() can re-create only the services at a narrower injector while inheriting the driver wiring.

buildQubeeProviders(config: QubeeConfig): Provider[]
Parameter Type Description
config QubeeConfig The driver definition, plus an optional base URL, pagination mode and request / response key overrides.

Returns — An array of Providers for the environment injector