2018-04-18 07:47:05 +00:00
|
|
|
import ngModule from '../../module';
|
|
|
|
|
|
|
|
class Controller {
|
2018-05-16 06:13:39 +00:00
|
|
|
constructor($http) {
|
2018-04-18 07:47:05 +00:00
|
|
|
this.$http = $http;
|
|
|
|
}
|
|
|
|
|
2018-05-16 06:13:39 +00:00
|
|
|
$onInit() {
|
|
|
|
this.data.registerChild(this);
|
|
|
|
}
|
2018-04-18 07:47:05 +00:00
|
|
|
|
2018-05-16 06:13:39 +00:00
|
|
|
onStepChange(state) {
|
|
|
|
return true;
|
2018-04-18 07:47:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-16 06:13:39 +00:00
|
|
|
Controller.$inject = ['$http'];
|
2018-04-18 07:47:05 +00:00
|
|
|
|
|
|
|
ngModule.component('vnTicketDataStepTwo', {
|
2018-05-25 08:03:45 +00:00
|
|
|
template: require('./index.html'),
|
2018-04-18 07:47:05 +00:00
|
|
|
controller: Controller,
|
|
|
|
bindings: {
|
|
|
|
ticket: '<'
|
2018-05-16 06:13:39 +00:00
|
|
|
},
|
|
|
|
require: {
|
|
|
|
data: '^vnTicketData'
|
2018-04-18 07:47:05 +00:00
|
|
|
}
|
|
|
|
});
|