入力フィールド内の配列からng-repeatで日付を表示したいとします。私は表示することができますが、最初のインデックス値がすべてのフィールドに反映されます。ng-repeat入力フィールドに日付を表示する - angularjs
$scope.trackPaymentDetails = [{"itemNo": 1, "nextduedate": "Jan 02, 2010", "Status": "Paid", "amount": 1000}, {"itemNo": 2, "Status": "Unpaid", "amount": 5000}];
<table class="table table-hover" novalidate>
<tr>
<th> S.No.</th>
<th> Amount</th>
<th> Due Date</th>
</tr>
<tbody>
<tr dir-paginate="item in trackPaymentDetails |orderBy:sortkey:reverse|itemsPerPage:2">
<td> {{$index + 1}}</td>
<td> {{item.amount}}</td>
<td><input class="form-control7" type="text" id="trackPaymentDueDate_{{$index}}" name="duedate" ng-model="model.nextduedate" required readonly="readonly" datepicker-popup="MMM dd, yyyy" placeholder=" " style="background-color: transparent;" value={{item.nextduedate}}></td>
</tr>
</tbody>
</table>
。おそらく無視されたコード: 'ng-model =" model.nextduedate "value = {{item.nextduedate}}>' – lealceldeiro
私はこのサンプルのプランカhttps://plnkr.co/edit/HXbevWのように日付ピッカーjsファイルを使用しています?p =プレビュー。だから私のng-repeatはこれで動作していません。手伝って頂けますか?日付を表示して日付を変更する方法。 – sudarsan