Stateful image components for Ember.js
See the API documentaion.
For Ember CLI v0.2.3 or higher
ember install ember-cli-image
or
ember install:addon ember-cli-image
This addon comes with three usable components stateful-img
, background-image
and image-container
Renders a stateful element whose loading and error states can be observed, and whose class names are updated accordingly.
Loads a stateful image for its css background-image. Class names are updated according to the image state.
It can also be used as a wrapper around content.
A container component with a stateful image as a child component. Class names are updated according to the image's state. This can be useful when you require a wrapper around your images for tasks like fading in images as they lazily load.
Check out ember-cli-image-lazy for seamlessly enabling lazily-loaded images.
Additionally, if you're using imgix as your image provider take a look at ember-cli-image-imgix for imgix integration.
Fork the repository, create a feature-branch and send in a pull request.
ember server
- Visit your app at http://localhost:4200.
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.