import ngModule from '../../module'; class Controller { constructor($http) { this.$http = $http; } $onInit() { this.data.registerChild(this); } onStepChange(state) { return true; } } Controller.$inject = ['$http']; ngModule.component('vnTicketDataStepTwo', { template: require('./index.html'), controller: Controller, bindings: { ticket: '<' }, require: { data: '^vnTicketData' } });