How to implement single selection and add it to the database
学习是最好的投资!
If you want to single-select, the ng-model of input[radio] needs to be the same, use value to control the value, and then detect the change of this value to change your permission.
<label> <input type="radio" ng-model="permission" value="0"> 无管理权 </label><br/> <label> <input type="radio" ng-model="permission" ng-value="1"> 部门管理权 </label><br/> <label> <input type="radio" ng-model="permission" value="2"> 全员管理权 </label>
If you want to single-select, the ng-model of input[radio] needs to be the same, use value to control the value, and then detect the change of this value to change your permission.