我在内部重复创建angucomplete。 你能解释为什么我的{{biaya.originalObject.id}}不起作用吗?
此处示例:plunker
<tr ng-repeat="biaya in data_biaya | filter:{tahapan_id : x.id}" ng-init="biaya.editing=[]">
<td>
{{$index+1}}
</td>
<td ng-click="biaya.editing[2]=true" ng-init="biaya.editing[2]=false;" >
<span ng-if="!biaya.editing[2]">{{biaya.uraian}}</span>
<angucomplete-alt ng-if="biaya.editing[2]"
id="ex1"
focus-in="focusIn()"
focus-out="focusOut()"
placeholder="Cari jenis biaya"
pause="100"
selected-object="biaya"
local-data="jenis_biaya"
search-fields="nama"
title-field="nama"
minlength="1"
initial-value="{{biaya.uraian}}"
input-class="form-control form-control-small">
</angucomplete-alt>
</td>
<td>
SelectedId = {{biaya.originalObject.id}}
</td>
</tr>