15 lines
380 B
JavaScript
15 lines
380 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.component('vnOrderCreate', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|