servergrove / NgSwitchery

An AngularJS Directive for Switchery
MIT License
87 stars 49 forks source link

Add compatibility with ngTrueValue and NgFalseValue #31

Open asabirov opened 8 years ago

asabirov commented 8 years ago

Hello there!

dzoeller commented 7 years ago

This won't work if ng-true-value is set to 'false' because of the "falsy" check for trueValue around line 65. Needs to be an explicit check for null or undefined there instead.