23 lines
495 B
JavaScript
23 lines
495 B
JavaScript
|
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
|
||
|
});
|