diff --git a/docs/components/data/35-o-table-export.component.md b/docs/components/data/35-o-table-export.component.md index 618fee981..757067310 100644 --- a/docs/components/data/35-o-table-export.component.md +++ b/docs/components/data/35-o-table-export.component.md @@ -228,7 +228,7 @@ export const customProviders: any = [ @NgModule({ declarations: [AppComponent], imports: [ - ONTIMIZE_MODULES, + OntimizeWebModule.forRoot(CONFIG), OntimizeWebModule, AppRoutingModule, HttpClientModule, @@ -422,7 +422,7 @@ export const customProviders: any = [ @NgModule({ declarations: [AppComponent], imports: [ - ONTIMIZE_MODULES, + OntimizeWebModule.forRoot(CONFIG), OntimizeWebModule, AppRoutingModule, HttpClientModule, @@ -530,7 +530,7 @@ export const customProviders: any = [ @NgModule({ declarations: [AppComponent], imports: [ - ONTIMIZE_MODULES, + OntimizeWebModule.forRoot(CONFIG), OntimizeWebModule, AppRoutingModule, HttpClientModule, @@ -660,7 +660,7 @@ export const customProviders: any = [ @NgModule({ declarations: [AppComponent], imports: [ - ONTIMIZE_MODULES, + OntimizeWebModule.forRoot(CONFIG), OntimizeWebModule, AppRoutingModule, HttpClientModule, diff --git a/docs/guide/10-structure.md b/docs/guide/10-structure.md index 018fbfdc5..539a5d163 100644 --- a/docs/guide/10-structure.md +++ b/docs/guide/10-structure.md @@ -215,7 +215,7 @@ export class AppModule { } The `NgModule` decorator uses the following metadata: -* **imports:** An array of modules that you want to use in your application. `ONTIMIZE_MODULES` includes standard Angular Modules (`HttpLoader`, `Http` and `TranslateHttpLoader`). +* **imports:** An array of modules that you want to use in your application. * **declarations:** Specifies a list of directives/pipes that belong to this module. * **boostrap:** Defines the components that should be bootstrapped when this module is bootstrapped. * **providers:** Define the set of injectable objects that are available in the injector of this module. You will include here all the services that you want to make available module-wide. Use the variable `customProviders` for including your application providers. diff --git a/docs/guide/17-add-to-project.md b/docs/guide/17-add-to-project.md index 3c6de735f..008443fcc 100644 --- a/docs/guide/17-add-to-project.md +++ b/docs/guide/17-add-to-project.md @@ -48,16 +48,16 @@ export const CONFIG: Config = { And include this configuration in the providers in the application module. -Include the `OntimizeWebModule`, `ONTIMIZE_MODULES` and `ONTIMIZE_PROVIDERS` in your application module. +Include the `OntimizeWebModule`, `OntimizeWebModule.forRoot(CONFIG)` and `ONTIMIZE_PROVIDERS` in your application module. ```typescript -import { APP_CONFIG, ONTIMIZE_MODULES, ONTIMIZE_PROVIDERS, OntimizeWebModule } from 'ontimize-web-ngx'; +import { APP_CONFIG, ONTIMIZE_PROVIDERS, OntimizeWebModule } from 'ontimize-web-ngx'; import { CONFIG } from './app.config'; @NgModule({ ... - imports: [ ONTIMIZE_MODULES, OntimizeWebModule ], + imports: [ OntimizeWebModule.forRoot(CONFIG), OntimizeWebModule ], providers: [ { provide: APP_CONFIG, useValue: CONFIG }, ...ONTIMIZE_PROVIDERS