import ngModule from '../module'; import Component from 'core/lib/component'; class Controller extends Component { showIntrastat(event) { if (event.defaultPrevented) return; event.preventDefault(); this.newIntrastat = { taxClassFk: this.item.taxClassFk }; this.$.intrastat.show(); } onCustomAgentAccept() { return this.$http.post(`CustomsAgents`, this.newCustomsAgent) .then(res => this.address.customsAgentFk = res.data.id); } } ngModule.component('vnItemBasicData', { template: require('./index.html'), bindings: { item: '<' }, controller: Controller });