JulioWar / jw-bootstrap-switch-ng2

Bootstrap Switch for Angular 2+
https://juliowar.github.io/jw-bootstrap-switch-ng2/
MIT License
43 stars 14 forks source link

changeState documentation #31

Closed bpatrik closed 5 years ago

bpatrik commented 5 years ago

Hi

Sorry for the not well formatted issue. In the docs the example code has the wrong event name:

[switch-handle-width]="handleWidth"
          [switch-base-class]="'bootstrap-switch'"
          (onChangeState)="onChange($event)">
  </bSwitch>

I know the readme says at two other places that its actually changeState, but it still took me 1 hour to fix this issue, since I was only looking at the example. :/ I would encourage using the new notation in the example too. Thx!

Best, Patrik

JulioWar commented 5 years ago

Sorry @bpatrik

I totally forgot to do it.