Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ng-true-value doesn't work with integers #7109

Closed
darkoromanov opened this issue Apr 14, 2014 · 1 comment
Closed

ng-true-value doesn't work with integers #7109

darkoromanov opened this issue Apr 14, 2014 · 1 comment

Comments

@darkoromanov
Copy link

See example here:

http://plnkr.co/edit/VxJVpbRV4vkbivKpAUUn?p=preview

<script>
    function Ctrl($scope) {
      $scope.value1 = true;
      $scope.value2 = 1;
    }
  </script>
  <form name="myForm" ng-controller="Ctrl">
    Value1:
    <input type="checkbox" ng-model="value1">
    <br/>Value2:
    <input type="checkbox" ng-model="value2" ng-true-value="1" ng-false-value="0">
    <br/>
    <tt>value1 = {{value1}}</tt>
    <br/>
    <tt>value2 = {{value2}}</tt>
    <br/>
  </form>
@pkozlowski-opensource
Copy link
Member

This is a duplicate of the more generic report here:
#1199

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants