Skip to content

Instantly share code, notes, and snippets.

@twokul
Created February 9, 2015 02:39
Show Gist options
  • Save twokul/6cdb53444adbf4a79ea8 to your computer and use it in GitHub Desktop.
Save twokul/6cdb53444adbf4a79ea8 to your computer and use it in GitHub Desktop.
lazy-loading-image-in-ember
{{lazy-image url='http://my-valid-url.com/foo.jpg'}}
{{#lazy-image url='http://my-valid-url.com/foo.jpg'}}
<!-- custom template goes here, spinner, svg, etc. -->
{{/lazy-image}}
{{lazy-image url='http://my-not-valid-url.com/foo.jpg' errorText='Something went wrong.'}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment