Skip to content

Commit

Permalink
docs(README): Add usage instructions about SweetAlert2Module.forRoot(…
Browse files Browse the repository at this point in the history
…...)
  • Loading branch information
toverux committed Jan 24, 2017
1 parent 1899459 commit 69ecc86
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@ import { SweetAlert2Module } from '@toverux/ngsweetalert2';

@NgModule({
imports: [SweetAlert2Module],
// ...

// OR provide default options, for example make Swal more Bootstrap-friendly:
imports: [
SweetAlert2Module.forRoot({
buttonsStyling: false,
confirmButtonClass: 'btn btn-lg btn-primary',
cancelButtonClass: 'btn btn-lg'
})
]
})
export class AppModule {}
```
Expand Down

0 comments on commit 69ecc86

Please sign in to comment.