Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/components/data/35-o-table-export.component.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export const customProviders: any = [
@NgModule({
declarations: [AppComponent],
imports: [
ONTIMIZE_MODULES,
OntimizeWebModule.forRoot(CONFIG),
OntimizeWebModule,
AppRoutingModule,
HttpClientModule,
Expand Down Expand Up @@ -422,7 +422,7 @@ export const customProviders: any = [
@NgModule({
declarations: [AppComponent],
imports: [
ONTIMIZE_MODULES,
OntimizeWebModule.forRoot(CONFIG),
OntimizeWebModule,
AppRoutingModule,
HttpClientModule,
Expand Down Expand Up @@ -530,7 +530,7 @@ export const customProviders: any = [
@NgModule({
declarations: [AppComponent],
imports: [
ONTIMIZE_MODULES,
OntimizeWebModule.forRoot(CONFIG),
OntimizeWebModule,
AppRoutingModule,
HttpClientModule,
Expand Down Expand Up @@ -660,7 +660,7 @@ export const customProviders: any = [
@NgModule({
declarations: [AppComponent],
imports: [
ONTIMIZE_MODULES,
OntimizeWebModule.forRoot(CONFIG),
OntimizeWebModule,
AppRoutingModule,
HttpClientModule,
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/10-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions docs/guide/17-add-to-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down