Skip to main content
Version: 3.4.0

provideNgQubee

provideNgQubee(config): EnvironmentProviders

Defined in: src/lib/provide-ngqubee.ts:97

Sets up providers necessary to enable NgQubee functionality for the application.

Parameters

config

IConfig

Configuration object compliant to the IConfig interface

Returns

EnvironmentProviders

A set of providers to setup NgQubee

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

Public Api