2018-03-22 17:02:48 +00:00
|
|
|
import ngModule from '../module';
|
|
|
|
|
2018-04-26 14:41:08 +00:00
|
|
|
class Controller {
|
|
|
|
constructor($scope, $timeout) {
|
|
|
|
this.$ = $scope;
|
|
|
|
this.$timeout = $timeout;
|
|
|
|
}
|
2018-03-26 12:55:10 +00:00
|
|
|
|
2018-04-26 14:41:08 +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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-26 14:41:08 +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
|
|
|
});
|