salix/modules/worker/front/basic-data/index.js

25 lines
459 B
JavaScript

import ngModule from '../module';
class Controller {
constructor($) {
Object.assign(this, {$});
}
onSubmit() {
this.$.watcher.submit()
.then(() => this.card.reload());
}
}
Controller.$inject = ['$scope'];
ngModule.component('vnWorkerBasicData', {
template: require('./index.html'),
controller: Controller,
bindings: {
worker: '<'
},
require: {
card: '^vnWorkerCard'
}
});