I'm trying to set the status of a button to active based on the value of "OrderBy" with no results, I've tried all the Q/A in stackoverflow.
<div class="btn-group col-md-offset-5" style="right: 12px !important;">
<label class="btn btn-default" ng-class="'active':orderProp=='name'">
<input type="radio" name="color" data-ng-model="orderProp" value="name"> Alphabetical
</label>
<label class="btn btn-default" ng-class="'active':orderProp=='price'">
<input type="radio" name="color" data-ng-model="orderProp" value="price"> Price
</label>
<label class="btn btn-default" ng-class="'active':orderProp=='calorie'">
<input type="radio" name="color" data-ng-model="orderProp" value="calorie"> Calorie
</label>{{orderProp}}
</div>
The value of orderProp is changing accordingly but dunno why the active class is not being applied. Thanks