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

25 lines
478 B
JavaScript
Raw Normal View History

2019-03-23 15:16:47 +00:00
import ngModule from '../module';
class Controller {
constructor($scope, $state) {
this.$scope = $scope;
this.$state = $state;
}
onSubmit() {
this.$scope.watcher.submit().then(() => {
this.card.reload();
});
}
}
2019-03-23 15:16:47 +00:00
ngModule.component('vnRouteBasicData', {
template: require('./index.html'),
controller: Controller,
2019-03-23 15:16:47 +00:00
bindings: {
route: '<'
},
require: {
card: '^vnRouteCard'
2019-03-23 15:16:47 +00:00
}
});