Package Exports
- vue-places
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-places) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vue-places
Places component is based on places.js for Vue 2.x.
Turn any into an address autocomplete
Installation
# yarn
$ yarn add vue-places
# npm
$ npm install vue-places --saveExample
<template>
<places
v-model="form.country.label"
placeholder="Where are we going ?"
@change="val => { form.country.data = val }"
:options="options">
</places>
</template>
<script>
import Places from 'vue-places';
export default {
data() {
return {
options: {
appId: <YOUR_PLACES_APP_ID>,
apiKey: <YOUR_PLACES_API_KEY>,
countries: ['US'],
},
form: {
country: {
label: null,
data: {},
},
},
};
},
components: {
Places,
},
}
</script>