import ngModule from '../module'; import './style.scss'; export default class Controller { constructor($scope) { this.$ = $scope; this.actionsText = { 'insert': 'Creates', 'update': 'Updates', 'delete': 'Deletes', 'select': 'Views' }; } showWorkerDescriptor(event, workerFk) { if (event.defaultPrevented) return; event.preventDefault(); event.stopPropagation(); this.selectedWorker = workerFk; this.$.workerDescriptor.parent = event.target; this.$.workerDescriptor.show(); } } Controller.$inject = ['$scope']; ngModule.component('vnLog', { controller: Controller, template: require('./index.html'), bindings: { model: '<' } });