@BillyBlumpkin wrote:
I am having users submit a form. I would like to use Google autocomplete for a location field. I installed ember-cli-gmaps. Here is the documentation: http://matt-jensen.github.io/ember-cli-g-maps/#/place-autocomplete/index
A closure action must be passed to on-select. Expect this action to be triggered when the user enters an address and selects an autocomplete option. Your closure action should take as param, an object like { lat: -49, lng: -123, place: place}. place is a PlaceResult object. Example {{g-autocomplete value=address on-select=(action "didUpdatePlace") on-select-error=(action "invalidUserSelection")}}
What action should go in didUpdatePlace in my controller to save this? For example, right now, if I just start typing Oma and select Omaha, NE, it only saves Oma and submits it.
Posts: 1
Participants: 1