应根据我在ngModel中获得的值检查单选按钮,将在ngModel上获得的值为1或0
<div class="col-md-6" id="radio-demo">
<input type="radio" name="in_stock" id="first-choice" [(ngModel)]="fifthSector.in_stock" />
<label for="first-choice">Yes</label>
<input type="radio" name="in_stock" id="second-choice" [(ngModel)]="fifthSector.in_stock" />
<label for="second-choice">No</label>
</div>
现在我没有检查两个单选按钮,怎么做
答案 0 :(得分:2)