olefirenko / vue-google-autocomplete

A Vue.js autosuggest component for the Google Places API.
https://olefirenko.github.io/vue-google-autocomplete/
MIT License
505 stars 258 forks source link

Binding value to v-model #57

Open bspatil0001 opened 6 years ago

bspatil0001 commented 6 years ago

Unable to bing value to v-model.After user selects the value the value is not reflecting in model.

olefirenko commented 6 years ago

Please check the documentation. You should use placechanged event.

bspatil0001 commented 6 years ago

If there are multiple places we are using in the same component we cannot assign to to the same value. It should be dynamic. Hence we cannot value in the function triggered by placechanged.

Vlaoff commented 6 years ago

@olefirenko Why don't you want to expose v-model ? Is there a technical reason ?

You are currently emitting with inputChange and one can set the default address with update() It's not a big rework to expose them with v-model.