Skip to content

Instantly share code, notes, and snippets.

@dan-ste
Created July 6, 2017 07:35
Show Gist options
  • Save dan-ste/2f778feb8493461e6cdd552931ed29c9 to your computer and use it in GitHub Desktop.
Save dan-ste/2f778feb8493461e6cdd552931ed29c9 to your computer and use it in GitHub Desktop.
Bare-minimum
<button onclick={{action 'findStores'}}>
Find Nearby Stores
</button>
{{#if result}}
{{#each result.stores as |s|}}
<li>
<strong>{{s.name}}</strong>:
{{s.distance}} miles away
</li>
{{/each}}
{{/if}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment