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
You need to bind the radio value to an ngModel
and either listen to the ngModelChange
or click
event instead of change
.
This answer might help you as well https://stackoverflow.com/a/42447116/4544288
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.