AngularJS 涉及到checkbox时候初始化值为on 的问题解决方案

 <label class="btn btn-xuanzhong active"  ng-click="redright=!redright" ng-init="redright=@(Model.IsRed_Right ? "true" : "false")">
                            <input type="checkbox" autocomplete="off" name="IsRed_Right" ng-checked="redright" value="true"> 右侧推荐
                            <input type="hidden" id="IsRed_Right" name="IsRed_Right" value="false" />
                        </label>

主要的就是input中的ng-checked="redright" value="true"

原文地址:https://www.cnblogs.com/WZH75171992/p/4861268.html