aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMisko Hevery2010-10-14 15:44:14 -0700
committerMisko Hevery2010-10-14 15:44:14 -0700
commita7da160c1d5f1614a7fa66ca9c31edb6edc7e0d8 (patch)
treecf10cf8ba06d3d1e81de77c45c97e4889173866c /src
parentd9c8284ea5c56e703c0fa7877c1f2a38d7b7d4d7 (diff)
downloadangular.js-a7da160c1d5f1614a7fa66ca9c31edb6edc7e0d8.tar.bz2
publish $route since we bind it with $route.current in ng:include
Diffstat (limited to 'src')
-rw-r--r--src/services.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services.js b/src/services.js
index 5b65f8fd..6857d693 100644
--- a/src/services.js
+++ b/src/services.js
@@ -289,7 +289,7 @@ angularServiceInject('$route', function(location){
}
this.$watch(function(){return dirty + location.hash;}, updateRoute);
return $route;
-}, ['$location']);
+}, ['$location'], EAGER_PUBLISHED);
angularServiceInject('$xhr', function($browser, $error, $log){
var self = this;