salix/client/item/src/list/item-product.js

28 lines
523 B
JavaScript
Raw Normal View History

2017-12-19 13:28:19 +00:00
import ngModule from '../module';
2018-02-22 07:18:57 +00:00
class ItemProduct {
constructor($http) {
this.$http = $http;
}
clone() {
console.log('clone ', this.item.id);
}
preview() {
this.ItemList.showItemPreview(this.item);
}
}
ItemProduct.$inject = ['$http', '$scope', 'vnPopover'];
2017-12-19 13:28:19 +00:00
ngModule.component('vnItemProduct', {
template: require('./item-product.html'),
bindings: {
item: '<'
2018-02-22 07:18:57 +00:00
},
controller: ItemProduct,
require: {
ItemList: '^vnItemList'
2017-12-19 13:28:19 +00:00
}
});