How to use angular to make the checkbox single-selected so that only one can be selected?
As shown in the picture, the following are the checkbox options in the table:
<td width="30" style="text-align: left"><input
type="checkbox" ng-model="checkboxes.items[item.bookingId]" name="flag" ng-click="updateSelection(item.bookingId,checkboxes.items)"/></td>
If it is implemented in the object's controller, it can only be selected single-selected. What about selecting one? ?
checkbox is a check box, please use radio for single selection
Try this