ng-class accepts an "expression" that must evaluate to one of the following:
- a string of space-delimited class names
- an array of class names
- a map/object of class names to boolean values
<divng-repeat="item in items"ng-class="{'pending-delete': item.checked}"> ... HTML to display the item ... <inputtype="checkbox"ng-model="item.checked"></div>
<divclass="main-body"ng-style="{color: myColor}">
...
<inputtype="text"ng-model="myColor"placeholder="enter a color name">