import ngModule from '../module'; import ModuleMain from 'salix/components/module-main'; export default class Route extends ModuleMain { constructor($element, $) { super($element, $); } async $onInit() { this.$state.go('home'); window.location.href = await this.vnApp.getUrl(`route/`); } } ngModule.vnComponent('vnRoute', { controller: Route, template: require('./index.html') });