【发布时间】:2017-11-21 12:08:19
【问题描述】:
我必须为在 Angular 4 中获取地址/位置的文本输入实现自动完成。
我在 Google 上找到了这个包,https://tanoy009.github.io/ng4-geoautocomplete/,但我不确定在我自己的代码中将 example3 的设置部分放在哪里。这是我目前所拥有的:
导出类 TestComponent {
apiAddress: string = "";
@Output() notify: EventEmitter<any> = new EventEmitter<any>();
autoCompleteCallback1(selectedData: any) {
this.apiAddress = selectedData.description;
this.notify.emit(this.apiAddress);
}
【问题讨论】:
标签: html angular typescript