I want to show the class based on the value present in it.
ng-if="data.percentage >= 0 & data.percentage < 25"
ng-if="data.percentage >= 25 & data.percentage < 50"
ng-if="data.percentage >= 50 & data.percentage < 75"
ng-if="data.percentage >= 75 & data.percentage <= 100"
.firstLabel
.secondLabel
.thirdLabel
.fourthLabel
For example, if the value in data.percentage is 75 then my output div should look like this.
<div ng-class="fourthLabel" > </div>
help is appriciated thanks.
Aucun commentaire:
Enregistrer un commentaire