How to uncheck a radio button on its second click Angular 2+

后端 未结 2 1354
野趣味
野趣味 2021-01-25 05:10

I am trying to implement Radio button uncheck on second click in Angular 2+ as done here in angularjs. I have an array of objects that get displayed using *ngFor, therefore I ha

2条回答
  •  -上瘾入骨i
    2021-01-25 05:26

    Please try your code with more radio buttons. Is it works well, you able to try to un-select the selected radio button when you click it again? I means your stackblitz code: stackblitz.com/edit/angular-bootstrap4-jo5acq.

提交回复
热议问题