2019-11-10 10:08:44 +00:00
|
|
|
import ngModule from '../module';
|
|
|
|
import ModuleMain from 'salix/components/module-main';
|
|
|
|
|
|
|
|
export default class Route extends ModuleMain {
|
2024-07-26 07:38:49 +00:00
|
|
|
constructor($element, $) {
|
|
|
|
super($element, $);
|
2021-01-20 12:19:28 +00:00
|
|
|
}
|
2024-07-26 07:38:49 +00:00
|
|
|
async $onInit() {
|
|
|
|
this.$state.go('home');
|
|
|
|
window.location.href = await this.vnApp.getUrl(`route/`);
|
2019-11-10 10:08:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ngModule.vnComponent('vnRoute', {
|
|
|
|
controller: Route,
|
|
|
|
template: require('./index.html')
|
|
|
|
});
|