salix/client/ticket/src/data/step-one/step-one.js

23 lines
495 B
JavaScript
Raw Normal View History

2018-04-04 11:56:16 +00:00
import ngModule from '../../module';
class Controller {
constructor($scope, $timeout, $state) {
this.$scope = $scope;
this.$timeout = $timeout;
this.$state = $state;
}
onSubmit() {
this.$state.go('ticket.card.data.stepTwo');
}
}
Controller.$inject = ['$scope', '$timeout', '$state'];
ngModule.component('vnTicketDataStepOne', {
template: require('./step-one.html'),
bindings: {
ticket: '<'
},
controller: Controller
});