I have a label that has class value based on 3 different conditions.

```
status = true => domain available 
status =false=> domain not available

click => domain is selected

```

but when click on it, class should change to 'check-yes1'. How can i make it to change cssClass when clicked?

```
<div ng-repeat="(key,value) in newReg.checkedDomains | groupBy: 'domain'">
     <label class="checkbox-inline" ng-class="{'check-yes' : ext.status==true}" ng-repeat="ext in value">
           <input type="checkbox">  
     </label>
</div>

```

i even tried something like

```
 <label class="checkbox-inline" ng-click="updateSelectStatus(ext.status,true)" ng-class="updateSelectStatus(ext.status,false)" ng-repeat="ext in value">
           <input type="checkbox">  
 </label>

$scope.updateSelectStatus = function (status, selected) {

    if (selected) {

        return 'checked';
    }

    return status == 'true' ? 'check-yes' : '';

}

```

sorry to confuse with the mess :)