import ngModule from '../module'; import Section from 'salix/components/section'; export default class Controller extends Section { constructor($element, $) { super($element, $); } async $onInit() { this.$state.go('customer.defaulter', {id: this.$params.id}); window.location.href = await this.vnApp.getUrl(`customer/defaulter`); } } ngModule.vnComponent('vnClientDefaulter', { template: require('./index.html'), controller: Controller });