我有和ng-重复一些lowValue和HighValue循环。Angular JS:在ng-repeat中绑定两个文本文件
1. LowValue1 HighValue1
2. LowValue2 HighValue2
3. LowValue3 HighValue3
. . .
n. LowValue n HighValue n
在NG-重复是一样的东西:
<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>
我的要求是高价值1应该等于第二lowValue 和第2高价值应该等于3 lowValue和儿子..
如何绑定这两个数据?
试图NG-绑定和ng-data-bind,但不工作.. :( – JayKay
我不清楚,你是说当他们在highValue中输入一个值时,ne xt row ng-model lowValue应该用相同的值更新? –