salix/modules/order/front/main/index.js

18 lines
431 B
JavaScript
Raw Normal View History

2019-11-10 10:08:44 +00:00
import ngModule from '../module';
import ModuleMain from 'salix/components/module-main';
2020-03-13 13:09:22 +00:00
export default class Order extends ModuleMain {
2024-08-28 12:37:45 +00:00
constructor($element, $) {
super($element, $);
}
async $onInit() {
this.$state.go('home');
window.location.href = await this.vnApp.getUrl(`order/`);
2020-03-13 13:09:22 +00:00
}
}
2019-11-10 10:08:44 +00:00
ngModule.vnComponent('vnOrder', {
controller: Order,
template: require('./index.html')
});