Cannot read property 'toString' of undefined at SwitchComponent.webpackJsonp.../../../../angular2-bootstrap-switch/lib/switch.component.js.SwitchComponent.ngOnChanges #12
The code breaks at the initial loading in method:
"SwitchComponent.prototype.ngOnChanges"
the reason is, ngOnChanges fires during the initial loading and at that time 'value' in the method is undefined :
var value = changedProp.currentValue;
The code breaks at the initial loading in method: "SwitchComponent.prototype.ngOnChanges"
the reason is, ngOnChanges fires during the initial loading and at that time 'value' in the method is undefined : var value = changedProp.currentValue;
Please fix this