salix/client/ticket/src/sale/sale.js

25 lines
545 B
JavaScript
Raw Normal View History

2018-03-22 17:02:48 +00:00
import ngModule from '../module';
class Controller {
constructor($scope, $timeout) {
this.$ = $scope;
this.$timeout = $timeout;
}
2018-03-26 12:55:10 +00:00
showDescriptor(event, itemFk) {
this.$.descriptor.itemFk = itemFk;
this.$.descriptor.parent = event.target;
this.$.descriptor.show();
}
onDescriptorLoad() {
this.$.popover.relocate();
2018-03-26 12:55:10 +00:00
}
}
Controller.$inject = ['$scope', '$timeout'];
2018-03-26 12:55:10 +00:00
2018-03-22 17:02:48 +00:00
ngModule.component('vnTicketSale', {
template: require('./sale.html'),
2018-03-26 12:55:10 +00:00
controller: Controller
2018-03-22 17:02:48 +00:00
});