这个问题是在大约一年前被问到的,通常我不会重新发布一个问题,但是给出的答案并不是很清楚,我遇到了同样的问题。原文:angularjs xeditable typeahead - update input field based on another input field value
我通常会使用filter:{Property:data}但它在浏览器中引发错误......
<a href="#" editable-select="ed.editTicket.Group" buttons="no" onbeforesave="ed.updateGroup($data)" onshow="ed.loadGroups()" e-ng-options="g as g.GroupName for g in ed.groups">{{ ed.group.GroupName || ed.editTicket.Group}}</a>
<a href="#" editable-text="ed.editTicket.Technician" buttons="no" onbeforesave="ed.updateAgent($data)" e-typeahead="name as name.DisplayName for name in ed.agents | filter: $viewValue | {PrimaryGroupID: ed.group.GroupID} | limitTo:8">{{ ed.agent.DisplayName || ed.editTicket.Technician}}</a>