您可能希望返回一个对象而不是字符串.
angularFormsModule.factory('efService', function efService() { var service = { employee: "Employee Detail Available" } return service; });