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