Skip to content

Commit cf46fae

Browse files
authored
Merge pull request #23 from vicmans/0.2.x
new 0.2.3
2 parents 4b20bb0 + a79aafa commit cf46fae

File tree

13 files changed

+143
-18096
lines changed

13 files changed

+143
-18096
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [0.2.3] - 2022-02-19
5+
### Added
6+
- Add forRoot default configuration for component
7+
48
## [0.2.2] - 2022-01-25
59
### Bug Fixed
610
- Fixed issue with ngModel input property

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,26 @@ import { NgToggleModule } from 'ng-toggle-button';
3232
...
3333
imports: [
3434
...,
35-
NgToggleModule
35+
NgToggleModule.forRoot() //or NgToggleModule
3636
],
3737
})
3838
```
3939

40+
Also, you can pass a global configuration for all `ng-toggle` component in your app
41+
42+
```typescript
43+
import { NgToggleModule } from 'ng-toggle-button';
44+
@NgModule({
45+
...
46+
imports: [
47+
...,
48+
NgToggleModule.forRoot(config)
49+
],
50+
})
51+
```
52+
53+
The `config` object is described in the table bellow
54+
4055
Use
4156

4257
```html

0 commit comments

Comments
 (0)