angular-switchery-ios
angular-switchery-ios copied to clipboard
Button is not working with 0, 1 value .
Hi, In the case of 0 or 1, the button is always enabled.
That was type casting issue I use this code. // true Boolean(JSON.parse("true")); Boolean(JSON.parse("1")); Boolean(JSON.parse(1)); Boolean(JSON.parse(true));
// false Boolean(JSON.parse("0")); Boolean(JSON.parse(0)); Boolean(JSON.parse("false")); Boolean(JSON.parse(false));