salix/modules/account/front/create/index.js

21 lines
506 B
JavaScript
Raw Normal View History

import ngModule from '../module';
import Section from 'salix/components/section';
export default class Controller extends Section {
constructor($element, $) {
super($element, $);
this.user = {active: true};
}
onSubmit() {
return this.$.watcher.submit().then(res => {
this.$state.go('account.card.basicData', {id: res.data.id});
});
}
}
ngModule.component('vnUserCreate', {
template: require('./index.html'),
controller: Controller
});