Whats the best approach to detect which radio has been selected in the following example?
<label for="apple">
<input id="apple" type="radio" name="fruits" value="apple" class=""/>
<span>Apple </span>
<SomeComponent>
</label>
<label for="mango">
<input id="mango" type="radio" name="fruits" value="apple" class=""/>
<span>Mango </span>
<AnotherComponent>
</label>
I want to be able to add a background to the selected label using ngClass. I could also use that variable for other things (such as disabling 'SomeComponent' or 'AnotherComponent' in the example.