32 lines
712 B
JavaScript
32 lines
712 B
JavaScript
|
import ngModule from '../module';
|
||
|
|
||
|
class Controller {
|
||
|
constructor($scope, $state, $http) {
|
||
|
this.$scope = $scope;
|
||
|
this.$http = $http;
|
||
|
this.filter = {
|
||
|
where: {ticketFk: $state.params.id}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
showDescriptor(event, itemFk) {
|
||
|
this.$scope.descriptor.itemFk = itemFk;
|
||
|
this.$scope.descriptor.parent = event.target;
|
||
|
this.$scope.descriptor.show();
|
||
|
}
|
||
|
|
||
|
onDescriptorLoad() {
|
||
|
this.$scope.popover.relocate();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Controller.$inject = ['$scope', '$state', '$http'];
|
||
|
|
||
|
ngModule.component('vnTicketSaleTracking', {
|
||
|
template: require('./index.html'),
|
||
|
controller: Controller,
|
||
|
bindings: {
|
||
|
ticket: '<'
|
||
|
}
|
||
|
});
|