Skip to content
Advertisement

Google place automplete Angular, get text if not found results

I am building an autocomplete component for address search with google maps service, for which I am using Angular 9. My component works, but I NEED TO CAPTURE THE VALUE OF THE INPUT WHEN THERE ARE NO SEARCHES AVAILABLE USING THE BLUR EVENT OR WHEN THE INPUT LOSE FOCUS.

Currently the component detects when I select an address, but I need to make it also detect the text I type when it does not find anything.

my html:

JavaScript

My ts:

JavaScript

Any idea?

Advertisement

Answer

usually you need to subscribe to the value changes of the input control.

JavaScript

I am not sure , I was able to answer to your question or not.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement