npm

Need private packages and team management tools?Check out npm Orgs. »

vue-places

1.1.0 • Public • Published

vue-places

Greenkeeper badge

Places component is based on places.js for Vue 2.x.


Installation

# yarn 
$ yarn add vue-places
 
# npm 
$ npm install vue-places --save

Example

<template>
  <places
    v-model="form.country.label"
    placeholder="Where are we going ?"
    @change="val => { form.country.data = val }"
    :options="{ countries: 'US' }">
  </places>
</template>
 
<script>
import Places from 'vue-places'
 
export default {
  data() {
    return {
      form: {
        country: {
          label: null,
          data: {},
        },
      },
    };
  },
  components: {
    Places
  }
}
</script>

Algolia Places Documentation

install

npm i vue-places

Downloadsweekly downloads

183

version

1.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability