Angularjs 如何在ng repeat中使用多个选择框将数据输入控制器

Angularjs 如何在ng repeat中使用多个选择框将数据输入控制器,angularjs,Angularjs,我无法从“多个”下拉列表将选定数据呈现到控制器中。我在ng repeat标记中声明了一个选择框 此选择框将重复列表大小 假设我的列表大小为5。选择框将使用相同的数据重复5次。 我必须将所选数据从选择框输入控制器。 有人能帮我吗 下面是示例jsp代码 <div ng-repeat="lanecategory in lanesList" > <div class="lanesclass" for="{{$index}}"> <select ng-

我无法从“多个”下拉列表将选定数据呈现到控制器中。我在ng repeat标记中声明了一个选择框

此选择框将重复列表大小

假设我的列表大小为5。选择框将使用相同的数据重复5次。 我必须将所选数据从选择框输入控制器。 有人能帮我吗

下面是示例jsp代码

  <div ng-repeat="lanecategory in lanesList" >
    <div class="lanesclass" for="{{$index}}">
      <select ng-model="myLane"  style="width: 172px"  ng-options="myLane.lane for myLane in lanesList" id = "mylane{{$index}}"  ng-change="changeLanesSelList()" ></select>
      <select ng-model="myAssignment" style="width: 113px" ng-options="myAssignment.type for myAssignment in assignmentList"  id = "myAssignment{{$index}}" ></select>
      <input type="text"  ng-model="value" style="width: 125px;height: 34px" id = "value{{$index}}"/>
      <select ng-model="myOperation" style="width: 75px" class="form-control"  ng-options="myOperation.type for myOperation in operationList" id = "myOperation{{$index}}" ></select>
    </div>
 </div>


……这是示例jsp代码-在哪里?请发布您的代码以获得帮助。编辑您的问题后,您可能需要查看编辑。有人说这是一个声誉问题,但我在论坛中没有发现此类问题。@przno示例代码添加了如何将所选数据(mylanes数据、myassignment数据、值和myoperation)获取到controller中