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

feature request: add v-model

Open Eoksni opened this issue 6 years ago • 1 comments

Pretty much all vue input components support v-model, both vue-native and third-party components. I think it is very convenient and well-known (among vue users) concept, and I think it would be great to be implemented in this awesome in other aspects component.

P. S. I know I can use @placechanged + update method via ref to emulate similar thing as v-model, but it is really not quite Vue-recommended way of doing things. Ref is always considered like more like a workaround than a proper solution.

If you don't mind this feature, I could make a PR with it some time later.

Eoksni avatar Jan 04 '18 12:01 Eoksni

FYI: Integration of v-model in own components is pretty easy. Instead of v-model you can just use :value in combination with @input, see https://vuejs.org/v2/guide/components.html#Form-Input-Components-using-Custom-Events

Just in case somebody reads this and did not know that. :1st_place_medal:

I also agree with an integration of v-model :+1:

pschaub avatar Jan 08 '18 08:01 pschaub