import ngModule from '../module'; import './style.scss'; class Controller { constructor($state, $scope, aclService) { this.$state = $state; this.$scope = $scope; this.aclService = aclService; } onSubmit() { this.$scope.watcher.check(); this.$scope.model.save().then(() => { this.$scope.watcher.notifySaved(); this.$scope.watcher.updateOriginalData(); if (this.aclService.hasAny(['salesAssistant'])) this.$state.go('claim.card.action'); }); } } Controller.$inject = ['$state', '$scope', 'aclService']; ngModule.component('vnClaimDevelopment', { template: require('./index.html'), controller: Controller, bindings: { claim: '<' } });