salix/modules/client/front/note/index/index.js

24 lines
578 B
JavaScript

import ngModule from '../../module';
import Section from 'salix/components/section';
import './style.scss';
export default class Controller extends Section {
constructor($element, $) {
super($element, $);
}
async $onInit() {
this.$state.go('home');
window.location.href = await this.vnApp.getUrl(`customer/${this.$params.id}/notes`);
}
}
Controller.$inject = ['$element', '$scope'];
ngModule.vnComponent('vnClientNote', {
template: require('./index.html'),
controller: Controller,
bindings: {
client: '<'
}
});