首页 > 解决方案 > 如果与谷歌地址自动完成一起使用,ngmodel 不能在文本框中保存地址

问题描述

我在用

  <input id="address" type="text" class="form-control" placeholder="Address" ng-model="vm.listingModal.streetAddress"
                    gm-places-autocomplete>

然后来自数据库的地址不会反映在字段中,但如果我删除 gm-places-autocomplete 则它会显示数据库中的地址但停止显示谷歌完整地址。

有人可以帮我解决这个问题吗?

提前致谢。

标签: angularjsautocomplete

解决方案


推荐阅读