Within my Angular component, I've set up a radio button group like so:
<label class="btn-{{cl1}}">
<input type="radio" value="am" name="time" formControlName="time1" (change)="cl1=active" >9:00am
</label>
I am looking for an efficient way to dynamically change the parent label class of each radio button when it is checked and remove it when unchecked. Rather than using numerous variables like cl1, cl2, cl3... Is there a simpler method to achieve this?
Appreciate any assistance provided!