Skip to content

crabbly/google-autocomplete-address-vuejs-mixin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-autocomplete-address-vuejs-mixin

Vue.js Mixin: Google Maps Autocomplete for Addresses.

####Usage

This is a reusable Vue.js Mixin to help adding an address autocomplete feature using the Places library in the Google Maps JavaScript API.

Steps:

  1. Add this mixin to any Vue.js instance or component
  2. Get the DOM input element where you will be typing addresses, and assing it to a property named googleAutoCompleteInput
  3. Create a method named updateAddress. In this method, you can assign the address values to your required properties. Check the example on app.js

Demo

Contributions

Contributions are welcome, just submit a PR

##License

google-autocomplete-address-vuejs-mixin is available under the MIT license.

About

Vue.js mixin: Google Maps Autocomplete for Addresses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published