实际上我想根据添加添加相同的下拉值。但是这里添加相同的下拉菜单,但是当我更改一个下拉列表时,它会同时更改所有下拉列表。
请帮助我解决这个问题。
HTML代码:
<div ng-repeat="serviceItems in serviceParameters | filter: headerFilter track by $index">
<div class="row service-param-row">
<div class="col-md-6 col-xs-12 col-sm-6 col-lg-6">
<label class="col-lg-2 col-md-2 col-xs-12 col-sm-12">Header</label>
<label class="col-lg-2 col-md-2 col-xs-12 col-sm-12">
<input type="text" placeholder= "key" ng-model="serviceItems.labelName">
</label>
<label class=" col-lg-1 col-md-1 col-xs-12 col-sm-12">
<label class="label label-info">{{serviceItems.paramTypeValue}}</label>
</label>
<label class=" col-lg-3 col-md-3 col-xs-12 col-sm-12">
<select k-option-label="'--Select Type--'" kendo-drop-down-list ng-model="adapterServiceFormData.headertype" k-options="headertypelist" tabindex="6" ></select>
</label>
<label class="col-lg-3 col-md-3 col-xs-12 col-sm-12">
<kendo-button ng-click="removeServiceParameter()" type="button" class="cancel">
<span class="k-icon k-i-cancel"></span>
</kendo-button>
</label>
<span ng-show="$last">
<kendo-button ng-click="addServiceParameter('', 'Header', '378e04cf-3124-44eb-86df-095bb08abc10')"><span class="k-icon k-i-plus"></span></kendo-button>
</span>
</div>
</div>
</div>
&#13;