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

26 lines
464 B
JavaScript

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