Not long started with Angular.
So I need to add a class to a parent div when a radio button is selected in Angular. I have been led to believe that this can be possible using [ngClass] and maybe even with [ngSelected] but haven't had any luck with it in the last few days.
What I think I am looking for is a class to be added to a div when a radio button is selected, I have seen static examples of this but nothing dynamic.
<div id="one">
<id="two">
<input type="radio" /><label>Text 1</label>
</div>
</div>
when the radio button is selected, the class will be added to the div with the id="one". It seems to be quite a simple thing but I am having no love with this at all.
Thanks!