我有一些低值和高值循环的 ng-repeat。
1. LowValue1 HighValue1
2. LowValue2 HighValue2
3. LowValue3 HighValue3
. . .
n. LowValue n HighValue n
在 ng-repeat 中是这样的:
<div ng-repeat="categoryObject in category.tiers track by $index">
<div class="col-lg-3 ">
<label class="control-label" translate> From ($) </label>
<input type="number" class="form-control" ng-model="categoryObject.lowValue" >
</div>
<div class="col-lg-3 ">
<label class="control-label" translate> To ($) </label>
<input type="number" class="form-control" ng-model="categoryObject.highValue" >
</div>
</div>
我的要求是 1st highValue 应该等于 2nd lowValue 和 2nd highValue 应该等于 3rd lowValue 和儿子..
如何绑定这两个数据?