aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMisko Hevery2010-04-29 10:55:22 -0700
committerMisko Hevery2010-04-29 10:55:22 -0700
commit913729ee0120cc72e13b18d826c6da0fe2b98bf7 (patch)
tree678be5150690cec530058a3f8e399f4a30e632e1 /src
parentfce48eb60a47be87a3d95e0750e54c19c2a346d0 (diff)
downloadangular.js-913729ee0120cc72e13b18d826c6da0fe2b98bf7.tar.bz2
fix isssue where the jasmine currentSpec does not get updated and hence everything runs as last spec context.
Diffstat (limited to 'src')
-rw-r--r--src/services.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/services.js b/src/services.js
index d6c3ad8a..b854c8d6 100644
--- a/src/services.js
+++ b/src/services.js
@@ -189,3 +189,7 @@ angularService('$route', function(location, params){
return $route;
}, {inject: ['$location']});
+angularService('$resource', function(browser){
+ var resource = new ResourceFactory(bind(browser, browser.xhr));
+ return bind(resource, resource.route);
+}, {inject: ['$browser']});