I have a list with checkbox items in it, On selecting the checkbox I want to add a class to the parent li. How can I achieve this.
I am new to Angular.
You can do this with ng-class:
ng-class
Orange
The {active: orange} is saying, "only add the active class if orange is truthy."
{active: orange}
active
orange
ng-model two-way binds the value of the checkbox. This gives you a variable orange to use inside the angular context.
ng-model