GuillaumeLeclerc / vue-google-maps

Google maps component for vue with 2-way data binding
560 stars 653 forks source link

How to add a name attribute to placeInput? #122

Closed connor11528 closed 7 years ago

connor11528 commented 7 years ago

I have a placeInput in a form. I need to submit the location to my server. In order to grab the value I need to add a name attribute on the input bar. What is the best way to add a name attribute and submit placeInput data to the server?

Thank you

JoshuaDoshua commented 7 years ago

@connor11528

I would think the best way is to handle the submission with $http.post and just use the data inside the placeInput's parent component.

connor11528 commented 7 years ago

Yeah I was looking to do it synchronously but I think ajax request will be way to go. Thank you