import ngModule from '../module'; class Controller { constructor($) { Object.assign(this, {$}); } onSubmit() { this.$.watcher.submit() .then(() => this.card.reload()); } } Controller.$inject = ['$scope']; ngModule.component('vnWorkerBasicData', { template: require('./index.html'), controller: Controller, bindings: { worker: '<' }, require: { card: '^vnWorkerCard' } });