22 lines
443 B
JavaScript
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'
|
|
}
|
|
});
|