锄头从 AngularJs 中的控制器调用 HTML DOM 函数?

问题描述

我在我的项目中为国家和州下拉字段使用了 custom-select(https://github.com/axel-zarate/js-custom-select) 指令。

<div custom-select="value.stateId as value.stateName for value in stateSearchAsync($searchTerm)" 
     custom-select-options="{ 'async': true }"
     custom-select-options="growableOptions"
     id="state" name="state" ng-model="common.state"
     ng-change="changeState(common.state)">
</div>

根据 AngularJS 自定义选择指令文档,我正在使用异步(服务器端)过滤。

在更改国家/地区字段时,我无法从控制器中的国家/地区 onchange 函数调用 stateSearchAsync 函数

请帮助我如何在更改国家/地区时刷新 State 字段下拉数据。

谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)