src/smartcomponent-library.module.ts
Angular module that bundles SmartComponent Library UI components.
Usage:
For new apps, use provideSmartComponentLibrary() in your providers array
along with importing SmartComponentLibraryModule:
@NgModule({
imports: [SmartComponentLibraryModule, ...],
providers: [provideSmartComponentLibrary({ serviceURI: '...' })]
})For legacy apps, you can use forRoot() which internally calls provideSmartComponentLibrary():
@NgModule({
imports: [SmartComponentLibraryModule.forRoot({ serviceURI: '...' }), ...]
})| Static forRoot | ||||||||
| Use `provideSmartComponentLibrary()` in your providers array instead. | ||||||||
forRoot(smartConfig: SmartConfigOptions)
|
||||||||
|
Configures the SmartComponentLibraryModule with the provided configuration.
Parameters :
The module with providers. |