Skip to content
qubeejs/angular
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.

IConfig

Configuration object compliant to the IConfig interface

EnvironmentProviders

A set of providers to setup NgQubee

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 })]
});