I have 3 radio buttons as follows:
.html:
<input type="radio" name = "options" value="All" [checked]='selectedRadioButtonValue' (input)='selectedRadioButtonValue=$event.target.value' />
<span class="radioClass">{{"All("+all+")"}}</span>
<input type="radio" name = "options" value="Male" [checked]='selectedRadioButtonValue' (input)='selectedRadioButtonValue=$event.target.value' />
<span class="radioClass">{{"Male("+male+")"}}</span>
<input type="radio" name = "options" value="Female" [checked]='selectedRadioButtonValue' (input)='selectedRadioButtonValue=$event.target.value' />
<span class="radioClass">{{"Female("+female+")"}}</span>
I dont want to use [(ngModel)] because of package issues .
I want to use [] and () traditional ways .
Now, the thing is values are not getting changed in the selectedRadioButtonValue . Whats the issue here?
export class EmployeeComponent {
selectedRadioButtonValue: string = "All";
}