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