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