File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {
57
57
* });
58
58
* </pre>
59
59
*
60
- * @param {object } rule Handler function that takes `$injector` and `$location`
60
+ * @param {function } rule Handler function that takes `$injector` and `$location`
61
61
* services as arguments. You can use them to return a valid path as a string.
62
62
*
63
63
* @return {object } `$urlRouterProvider` - `$urlRouterProvider` instance
@@ -93,7 +93,7 @@ function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {
93
93
* });
94
94
* </pre>
95
95
*
96
- * @param {string|object } rule The url path you want to redirect to or a function
96
+ * @param {string|function } rule The url path you want to redirect to or a function
97
97
* rule that returns the url path. The function version is passed two params:
98
98
* `$injector` and `$location` services, and must return a url string.
99
99
*
@@ -151,7 +151,7 @@ function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {
151
151
* </pre>
152
152
*
153
153
* @param {string|object } what The incoming path that you want to redirect.
154
- * @param {string|object } handler The path you want to redirect your user to.
154
+ * @param {string|function } handler The path you want to redirect your user to.
155
155
*/
156
156
this . when = function ( what , handler ) {
157
157
var redirect , handlerIsString = isString ( handler ) ;
You can’t perform that action at this time.
0 commit comments