npm.io
0.0.3 • Published 4 years ago

google-autocomplete-service

Licence
Version
0.0.3
Deps
1
Size
48 kB
Vulns
0
Weekly
0

Google Places Autocomplete

Get Google autocomplete dropdown in your angular form in just few lines. to see the code you can visit Github.

How to use!

Import this line into your index.html file.

<script async defer type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=<your-api-key>&libraries=places&v=weekly"></script>

Pass your FormGroup as form and input field as selector as below.

<google-autocomplete [form]="your-instance-of-form" [selector]="name-of-field-for-autocomplete"></google-autocomplete>