Skip to content

Instantly share code, notes, and snippets.

@dan-ste
Last active July 6, 2017 10:17
Embed
What would you like to do?
<button onclick={{perform findStores}}>
Find Nearby Stores
{{#if findStores.isRunning}}
{{fa-icon "spinner" spin=true}}
{{/if}}
</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