Skip to content

Instantly share code, notes, and snippets.

@dmuneras
Last active September 28, 2018 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmuneras/1f0de66d2240c862537cb49372804acf to your computer and use it in GitHub Desktop.
Save dmuneras/1f0de66d2240c862537cb49372804acf to your computer and use it in GitHub Desktop.
Ember place autocomplete examples
import Component from '@ember/component';
export default Component.extend({
actions: {
placeChanged(place) {
this.set('placeResponse', place);
}
}
});
{{place-autocomplete-field
inputClass= 'form-control'
preventSubmit= true
placeChangedCallback=(action 'placeChanged')
types="address"
placeholder=''
value=address
setValueWithProperty='name'
}}
<h2>Place Response</h2>
{{placeResponse}}
@yefan15
Copy link

yefan15 commented Sep 28, 2018

I have it working, thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment