18 lines
413 B
JavaScript
18 lines
413 B
JavaScript
import ngModule from '../module';
|
|
import ModuleMain from 'salix/components/module-main';
|
|
|
|
export default class Travel extends ModuleMain {
|
|
constructor() {
|
|
super();
|
|
}
|
|
async $onInit() {
|
|
this.$state.go('home');
|
|
window.location.href = await this.vnApp.getUrl(`travel/`);
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnTravel', {
|
|
controller: Travel,
|
|
template: require('./index.html')
|
|
});
|