yuyang041060120 / angular2-ui-switch

angular2 ui switch component
http://yuyang041060120.github.io/angular2-ui-switch
MIT License
57 stars 36 forks source link

Reverse functionality broken #19

Open GopinathJanakiraman opened 4 years ago

GopinathJanakiraman commented 4 years ago

Hello Guys! What is the intended way of "reverse"? I currently have a boolean coming from a backend with "false" as the value, which causes the switch to be in "off" mode. I want to reverse this, so that the switch is "on" when its value is false.

Is this what "reverse" should do? If that's the case, then I think it's broken.

(Originally asked in https://github.com/webcat12345/ngx-ui-switch/issues/382)