import angular from 'angular';
import UserFactory from './user.factory';

let userModule = angular.module('user', [])
	.factory('User', UserFactory);
	
export default userModule; 
import angular from 'angular';
import UserFactory from './user.factory';

let userModule = angular.module('user', [])

.factory('User', UserFactory);

export default userModule;

Update user.js