1
私は単純な問題がありますが、解決方法はわかりません。 partignalTypeの値がドロップダウンリストに入力されていません。Angularjs - ng-repeat内のng-options
var testModule = angular.module('myApp', []);
function testCtrl($scope) {
$scope.participants = [{
partSignalId: '13077223000',
partName: 'abc',
partSignalType: ['H323','SIP']
}]
}
And my html code:
<div ng-controller="testCtrl">
<table border="1" style="width:300px">
<tr>
<th md-column>Select</th>
<th md-column><span>Name</span></th>
<th md-column md-numeric><span>Participant Aliase</span></th>
<th md-column><span>Protocol</span></th>
</tr>
<tr md-row md-select="dessert" md-select-id="name" md-auto-select ng- repeat="participant in participants | filter: search">
<td md-cell><input type="checkbox" ng-model="participant.selected"></td>
<td md-cell>{{participant.partName}}</td>
<td md-cell>{{participant.partSignalId}}</td>
<td md-cell>
<select ng-model="participant.partSignalType" ng-options="partSignalType" required >
<option value="">Select</option>
</select>
</td>
</tr>
</table>
</div>