import ngModule from '../module'; class Controller { constructor($scope, $stateParams) { this.$scope = $scope; this.$stateParams = $stateParams; } 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', '$stateParams']; ngModule.component('vnTicketSaleTracking', { template: require('./index.html'), controller: Controller, bindings: { ticket: '<' } });