We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c81883 commit 25a37cdCopy full SHA for 25a37cd
client/app/components/image-item.js
@@ -3,6 +3,12 @@ export default Ember.Component.extend({
3
classNameBindings: 'image.currentState',
4
attributeBindings: 'style',
5
6
+ actions: {
7
+ removeItem: function(item) {
8
+ this.sendAction('removeItem', item);
9
+ }
10
+ },
11
+
12
style: function() {
13
var url = this.get('image.normalUrl');
14
client/app/templates/images.hbs
@@ -2,6 +2,6 @@
2
<ul class="images-list">
{{#each image in newest}}
- {{image-item tagName="li" image=image error=error}}
+ {{image-item tagName="li" image=image error=error removeItem="removeItem"}}
{{/each}}
</ul>
0 commit comments