3.8/API/provideNgQubee
provideNgQubee
ArchivedThese are the docs for ng-qubee 3.8. Read the 4.0 docs for @qubeejs/angular.
provideNgQubee(
config):EnvironmentProviders
Defined in: src/lib/provide-ngqubee.ts:97
Sets up providers necessary to enable NgQubee functionality for the application.
Parameters
Section titled “Parameters”config
Section titled “config”Configuration object compliant to the IConfig interface
Returns
Section titled “Returns”EnvironmentProviders
A set of providers to setup NgQubee
Usage Notes
Section titled “Usage Notes”Basic example with the Laravel driver:
bootstrapApplication(AppComponent, { providers: [provideNgQubee({ driver: DriverEnum.LARAVEL })]});Spatie driver example:
import { DriverEnum } from 'ng-qubee';
bootstrapApplication(AppComponent, { providers: [provideNgQubee({ driver: DriverEnum.SPATIE })]});JSON:API driver example:
import { DriverEnum } from 'ng-qubee';
bootstrapApplication(AppComponent, { providers: [provideNgQubee({ driver: DriverEnum.JSON_API })]});NestJS driver example:
import { DriverEnum } from 'ng-qubee';
bootstrapApplication(AppComponent, { providers: [provideNgQubee({ driver: DriverEnum.NESTJS })]});