import angular from 'angular';
import uiRouter from 'angular-ui-router';
import heroComponent from './hero.component'; 

let heroModule = angular.module('hero', [
	uiRouter
])
.directive('hero', heroComponent);

export default heroModule;
import angular from 'angular';
import uiRouter from 'angular-ui-router';
import heroComponent from './hero.component';

let heroModule = angular.module('hero', [
  uiRouter
])

.directive('hero', heroComponent);

export default heroModule;

Update hero.js