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

18 lines
427 B
JavaScript
Raw Permalink Normal View History

2019-09-25 18:06:42 +00:00
import ngModule from '../module';
2019-11-10 10:08:44 +00:00
import ModuleMain from 'salix/components/module-main';
2019-09-25 18:06:42 +00:00
2024-09-11 12:42:21 +00:00
export default class Zone extends ModuleMain {
2020-03-07 12:52:02 +00:00
constructor($element, $) {
super($element, $);
}
async $onInit() {
this.$state.go('home');
window.location.href = await this.vnApp.getUrl(`zone/`);
2020-03-07 12:52:02 +00:00
}
}
2019-11-10 10:08:44 +00:00
ngModule.vnComponent('vnZone', {
controller: Zone,
2019-09-25 18:06:42 +00:00
template: require('./index.html')
});