Switch to a more consistent naming convention for services and resource loading.

This commit is contained in:
Simo Kinnunen
2014-02-05 17:37:32 +09:00
parent 91097dc569
commit 6893abdb75
14 changed files with 39 additions and 39 deletions

View File

@@ -0,0 +1,17 @@
define(['./_module'], function(services) {
function UserServiceFactory($http) {
var userService = {
}
userService.user = (function() {
var userPromise = $http.get('/api/v1/user')
return function() {
return userPromise
}
})()
return userService
}
services.factory('UserService', ['$http', UserServiceFactory])
})