15 lines
382 B
JavaScript
15 lines
382 B
JavaScript
import ngModule from '../module';
|
|
import Section from 'salix/components/section';
|
|
|
|
class Controller extends Section {
|
|
async onSubmit() {
|
|
let newOrderID = await this.$.card.createOrder();
|
|
this.$state.go('order.card.summary', {id: newOrderID});
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnOrderCreate', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|