I want to compare id.here if id equals 5 do this, else do that.
How can I achieve this?
<div class="case" data-ng-if="data.id === '5' ">
<input type="checkbox" id="{{data.id}}" value="{{data.displayName}}"
data-ng-model="customizationCntrl.check[data.id1]"
data-ng-checked="{{data.status}}=='1'" onclick="return false;">{{data.displayName}}
<br>
</div>
<div class="case" data-ng-else>
<input type="checkbox" id="{{data.id}}" value="{{data.displayName}}"
data-ng-model="customizationCntrl.check[data.id]"
data-ng-checked="{{data.status}}=='1'">{{data.displayName}}<br>
</div>
question from:
https://stackoverflow.com/questions/32756490/how-to-make-use-of-ng-if-ng-else-in-angularjs 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…