google-maps-autocomplete

google maps places autocomplete addEventListener doesn't work

萝らか妹 提交于 2019-12-24 09:48:40
问题 I have been trying to add google maps places auto complete in ionic 2 project to update the user location.However, the addEventListener doesn't seems to work and there is no console errors could anyone tell me where I am going wrong? ngAfterViewInit() { let input = < HTMLInputElement > document.getElementById("auto"); console.log('input', input); let options = { componentRestrictions: { country: 'IN', types: ['(regions)'] } } let autoComplete = new google.maps.places.Autocomplete(input,