I have radio inputs and want to ucheck state by click on radio if current radio is checked.
This code:
You could do using below. set an attribute.
public selectedMoiProfile : boolean = false; onSelect(p: profile) { p.selectedProfile= p.selectedProfile? false : true; }