I know how to set the color of a radio button label with ng-style
, like this:
ng-style="{'background-color': buttonColor}"
But how can I change the color of the radio button label when it is checked using the ng-style
directive? In css it is like this:
.radio-button:checked+label {
background-color: #52b6db;
border: 1px solid #52b6db;
}
EDIT: Basically, how do I tap into the :checked+label
style property through ng-style
?