我在angular-xeditable中使用了ui-select。在此示例中一切正常,但模型未更新(选择项目时 foo.bar 不会更改)。你能帮助我吗?
<span editable-ui-select="foo.bar" e-ng-model="foo.bar" e-name="bar" name="bar" e-form="editableForm">
{{foo.bar.name}}
<editable-ui-select-match placeholder="Search..." style="width:500px">
{{$select.selected.name}}
</editable-ui-select-match>
<editable-ui-select-choices repeat="b in bars | filter:$select.search">
{{b.name}}
</editable-ui-select-choices>
</span>