aboutsummaryrefslogtreecommitdiffstats
path: root/src/service/route.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/service/route.js')
-rw-r--r--src/service/route.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/service/route.js b/src/service/route.js
index e1d0e7be..9b4db0dd 100644
--- a/src/service/route.js
+++ b/src/service/route.js
@@ -62,7 +62,7 @@
</doc:scenario>
</doc:example>
*/
-angularServiceInject('$route', function($location, $updateView) {
+angularServiceInject('$route', function($location) {
var routes = {},
onChange = [],
matcher = switchRouteMatcher,
@@ -267,7 +267,7 @@ angularServiceInject('$route', function($location, $updateView) {
}
- this.$watch(function(){return dirty + $location.hash;}, updateRoute)();
+ this.$watch(function(){return dirty + $location.hash;}, updateRoute);
return $route;
-}, ['$location', '$updateView']);
+}, ['$location']);