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

22 lines
445 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.vnComponent('vnTravelBasicData', {
template: require('./index.html'),
controller: Controller,
bindings: {
travel: '<'
},
require: {
card: '^vnTravelCard'
}
});