Skip to content

Instantly share code, notes, and snippets.

@dan-ste
Last active July 6, 2017 07:18
Show Gist options
  • Save dan-ste/55767870490bb3f0848eb92ec1c02f84 to your computer and use it in GitHub Desktop.
Save dan-ste/55767870490bb3f0848eb92ec1c02f84 to your computer and use it in GitHub Desktop.
export default TutorialComponent.extend({
result: null,
actions: {
findStores() {
let geolocation = this.get('geolocation');
let store = this.get('store');
geolocation.getCoords()
.then(coords => store.getNearbyStores(coords))
.then(result => {
this.set('result', result);
});
}
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment