22 lines
484 B
JavaScript
22 lines
484 B
JavaScript
import ngModule from '../../module';
|
|
|
|
export default class Controller {
|
|
constructor($state) {
|
|
this.$state = $state;
|
|
this.note = {
|
|
clientFk: parseInt($state.params.id),
|
|
text: null
|
|
};
|
|
}
|
|
|
|
cancel() {
|
|
this.$state.go('client.card.note.index', {id: this.$state.params.id});
|
|
}
|
|
}
|
|
Controller.$inject = ['$state'];
|
|
|
|
ngModule.component('vnNoteCreate', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|