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

18 lines
435 B
JavaScript
Raw Normal View History

2019-11-10 10:08:44 +00:00
import ngModule from '../module';
import ModuleMain from 'salix/components/module-main';
export default class Worker extends ModuleMain {
constructor($element, $) {
super($element, $);
}
async $onInit() {
this.$state.go('home');
window.location.href = await this.vnApp.getUrl(`worker/`);
}
}
2019-11-10 10:08:44 +00:00
ngModule.vnComponent('vnWorker', {
controller: Worker,
template: require('./index.html')
});