salix/modules/client/front/note/create/index.js

22 lines
511 B
JavaScript

import ngModule from '../../module';
import Section from 'salix/components/section';
export default class Controller extends Section {
constructor($element, $) {
super($element, $);
this.note = {
clientFk: parseInt(this.$params.id),
text: null
};
}
cancel() {
this.$state.go('client.card.note.index', {id: this.$params.id});
}
}
ngModule.component('vnNoteCreate', {
template: require('./index.html'),
controller: Controller
});