Skip to content
This repository has been archived by the owner on Jun 3, 2022. It is now read-only.

Commit

Permalink
docs: fix readme.md, forRoot need at least an empty "options" object (#3
Browse files Browse the repository at this point in the history
)

fix readme.md, forRoot need at least an empty "options" object
  • Loading branch information
snys98 authored and cipchk committed Dec 28, 2017
1 parent 483aca0 commit 496a8c8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
12 changes: 9 additions & 3 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@ npm install ngx-notify --save
import { NotifyModule } from 'ngx-notify';
@NgModule({
imports: [BrowserModule, NotifyModule.forRoot({
})],
imports: [
BrowserModule,
NotifyModule.forRoot({
options: { },
notify: {
progress: true
}
})
],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ Import the `NotifyModule` in to your root `AppModule`.
import { NotifyModule } from 'ngx-notify';
@NgModule({
imports: [BrowserModule, NotifyModule.forRoot()],
imports: [
BrowserModule,
NotifyModule.forRoot({
options: { },
notify: {
progress: true
}
})
],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
Expand Down

0 comments on commit 496a8c8

Please sign in to comment.