File

src/smartcomponent-library.module.ts

Description

Angular module that bundles SmartComponent Library UI components.

Usage:

For new apps, use provideSmartComponentLibrary() in your providers array along with importing SmartComponentLibraryModule:

Example :
@NgModule({
  imports: [SmartComponentLibraryModule, ...],
  providers: [provideSmartComponentLibrary({ serviceURI: '...' })]
})

For legacy apps, you can use forRoot() which internally calls provideSmartComponentLibrary():

Example :
@NgModule({
  imports: [SmartComponentLibraryModule.forRoot({ serviceURI: '...' }), ...]
})

Methods

Static forRoot
Use `provideSmartComponentLibrary()` in your providers array instead.
forRoot(smartConfig: SmartConfigOptions)

Configures the SmartComponentLibraryModule with the provided configuration.

Parameters :
Name Type Optional Description
smartConfig SmartConfigOptions No
  • The configuration options.

The module with providers.

results matching ""

    No results matching ""