LaravelLaravel & VueJsVueJs

Google Autocomplete Vue Component – Vue.js Feed



google-autocomplete

Google Autocomplete component is a Vue.js wrapper for the Google official API, providing a simple approach. In spite of the demo was written in Vue.js, the Autocomplete object can be pulled in from any JS framework.
Take a look at the Demo.

Requirements

You will have to install Vuemit:

npm install vuemit --save

The Vuemit library is used to manage the events between the google component its parent one.

Installation

To install this package you just need to open your console line and type

npm i google-autocomplete-vue --save
import GoogleAutocomplete from 'google-autocomplete-vue'

Then you have to sign up in Google API Console in order for you to configure your app information, as API key, app name, etc.
Once this has been done, you will have to copy the API KEY given by google and paste in your JS file entry point.

You can find more on Google Autocomplete on GitHub, by Gustavo Ocanto.

http://platform.twitter.com/widgets.js




Source link
★ READ ALSO ★  Learning Vue.js 2

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close