16 lines
385 B
JavaScript
16 lines
385 B
JavaScript
|
import ngModule from '../module';
|
||
|
import Section from 'salix/components/section';
|
||
|
|
||
|
class Controller extends Section {
|
||
|
onSubmit() {
|
||
|
return this.$.watcher.submit().then(
|
||
|
res => this.$state.go('travel.card.summary', {id: res.data.id})
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
ngModule.component('vnTravelCreate', {
|
||
|
template: require('./index.html'),
|
||
|
controller: Controller
|
||
|
});
|