From 9a7b949e9cbff4b66ef643852ca927f1dc0197bd Mon Sep 17 00:00:00 2001 From: Solpi Date: Fri, 8 Feb 2019 01:19:40 +0300 Subject: [PATCH] Add a city to a separate parameter --- vue-suggestions.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vue-suggestions.vue b/vue-suggestions.vue index 2a075f8..efd1ecb 100644 --- a/vue-suggestions.vue +++ b/vue-suggestions.vue @@ -11,6 +11,7 @@ model: { required: true }, + city:{}, coordinates: {}, options: { type: Object, @@ -69,6 +70,7 @@ const { geo_lat, geo_lon } = suggestion.data; this.coords.latitude = geo_lat; this.coords.longitude = geo_lon; + this.$emit('update:city', suggestion.data.city); } } };