定义和用法
ng-checked 指令用于设置复选框(checkbox)或单选按钮(radio)的 checked 属性。
如果 ng-checked 属性返回 true,复选框(checkbox)或单选按钮(radio)将会被选中
语法
<input type="checkbox|radio" ng-checked="expression"></input>
type 为 checkbox 或 radio 的 <input> 元素支持。
ng-checked 指令用于设置复选框(checkbox)或单选按钮(radio)的 checked 属性。
如果 ng-checked 属性返回 true,复选框(checkbox)或单选按钮(radio)将会被选中
<input type="checkbox|radio" ng-checked="expression"></input>
type 为 checkbox 或 radio 的 <input> 元素支持。
转载于:https://my.oschina.net/hrw/blog/840813