Lets say you have an array that is rendered in a ul with an li for each element and a property on the controller called selectedIndex.
ul
li
selectedIndex
If you are using angular pre v1.1.5 (i.e. no ternary operator) and you still want an equivalent way to set a value in both conditions you can do something like this:
ng-class="{'class1':item.isReadOnly == false, 'class2':item.isReadOnly == true}"