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

18 lines
427 B
JavaScript

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