vue-google-autocomplete icon indicating copy to clipboard operation
vue-google-autocomplete copied to clipboard

Binding value to v-model

Open bspatil0001 opened this issue 7 years ago • 3 comments

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

bspatil0001 avatar Feb 05 '18 11:02 bspatil0001

Please check the documentation. You should use placechanged event.

olefirenko avatar Feb 08 '18 09:02 olefirenko

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.

bspatil0001 avatar Feb 08 '18 10:02 bspatil0001

@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.

Vlaoff avatar Apr 11 '18 09:04 Vlaoff