Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit a7dfa7c

Browse files
docs($route): add missing error document
1 parent a19a17e commit a7dfa7c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@ngdoc error
2+
@name $route:norout
3+
@fullName Tried updating route with no current route
4+
@description
5+
6+
Occurs when an attempt is made to update the parameters on the current route when
7+
there is no current route. This can happen if you try to call `$route.updateParams();`
8+
before the first route transition has completed.

src/ngRoute/route.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ function $RouteProvider() {
605605
// interpolate modifies newParams, only query params are left
606606
$location.search(newParams);
607607
} else {
608-
throw $routeMinErr('norout', 'Tried updating route when with no current route');
608+
throw $routeMinErr('norout', 'Tried updating route with no current route');
609609
}
610610
}
611611
};

0 commit comments

Comments
 (0)