import ngModule from '../module'; 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']; ngModule.component('vnItemProduct', { template: require('./item-product.html'), bindings: { item: '<' }, controller: ItemProduct, require: { ItemList: '^vnItemList' } });