0
値を0にしたいというチェックボックスがあります。私もそれ私のコントローラ内の範囲は次のようになりますng-modelによるチェックボックスへの値の割り当て
<input type="checkbox" class="input-group inline form-control" value="0" name="" id="deletelanguage" ng-show="IsVisible" ng-model="delStat">
にNG-moelを割り当てました。
$scope.delStat="";
チェックボックスがオンの場合、チェックボックスの値を1に変更します。どうやってやるの?
確認[チェックボックスのための角度DOC(https://docs.angularjs.org/api/ng/input/input%5Bcheckbox以下のように使用
ng-true-value ng-false-value
%5D) –['ngTrueValue'' ngFalseValue'](https://docs.angularjs.org/api/ng/input/input%5Bcheckbox%5D) –