html<input type="checkbox" ng-model="vm.isChecked"/> <select> <option>--请选择--</option> <option>一些选项</option> </select>
html
<input type="checkbox" ng-model="vm.isChecked"/> <select> <option>--请选择--</option> <option>一些选项</option> </select>
想通过判断checkbox勾选/未勾选的时候,给select删除/添加disabled属性,js该怎么写呢?是用ng-if么?
disabled
ng-if
http://docs.angularjs.cn/api/ng/directive/ngDisabled
http://docs.angularjs.cn/api/ng/directive/ngDisabled