import ngModule from '../../module'; import Section from 'salix/components/section'; export default class Controller extends Section { constructor($element, $) { super($element, $); this.note = { claimFk: parseInt(this.$params.id), workerFk: window.localStorage.currentUserWorkerId, text: null }; } cancel() { this.$state.go('claim.card.note.index', {id: this.$params.id}); } } ngModule.vnComponent('vnClaimNoteCreate', { template: require('./index.html'), controller: Controller });