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

26 lines
474 B
JavaScript
Raw Normal View History

2019-10-25 11:26:38 +00:00
import ngModule from '../module';
class Controller {
constructor($scope) {
this.$ = $scope;
}
onSubmit() {
return this.$.watcher.submit().then(() => {
this.card.reload();
});
}
}
Controller.$inject = ['$scope'];
ngModule.component('vnTravelBasicData', {
template: require('./index.html'),
controller: Controller,
bindings: {
travel: '<'
},
require: {
card: '^vnTravelCard'
}
});