salix/modules/travel/front/basic-data/index.js

22 lines
443 B
JavaScript

import ngModule from '../module';
import Section from 'salix/components/section';
class Controller extends Section {
onSubmit() {
return this.$.watcher.submit().then(() =>
this.card.reload()
);
}
}
ngModule.component('vnTravelBasicData', {
template: require('./index.html'),
controller: Controller,
bindings: {
travel: '<'
},
require: {
card: '^vnTravelCard'
}
});