import ngModule from '../module'; import './style.scss'; class Controller { constructor($scope, $state, aclService) { this.$scope = $scope; this.$state = $state; this.$stateParams = $state.params; this.aclService = aclService; } onSubmit() { if (this.aclService.hasAny(['salesAssistant'])) { this.$scope.watcher.submit().then(() => { this.$state.go('claim.card.detail'); }); } } } Controller.$inject = ['$scope', '$state', 'aclService']; ngModule.component('vnClaimBasicData', { template: require('./index.html'), controller: Controller, bindings: { claim: '<' } });