File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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) {
5757 * });
5858 * </pre>
5959 *
60- * @param {object } rule Handler function that takes `$injector` and `$location`
60+ * @param {function } rule Handler function that takes `$injector` and `$location`
6161 * services as arguments. You can use them to return a valid path as a string.
6262 *
6363 * @return {object } `$urlRouterProvider` - `$urlRouterProvider` instance
@@ -93,7 +93,7 @@ function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {
9393 * });
9494 * </pre>
9595 *
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
9797 * rule that returns the url path. The function version is passed two params:
9898 * `$injector` and `$location` services, and must return a url string.
9999 *
@@ -153,7 +153,7 @@ function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {
153153 * </pre>
154154 *
155155 * @param {string|object } what The incoming path that you want to redirect.
156- * @param {string|object } handler The path you want to redirect your user to.
156+ * @param {string|function } handler The path you want to redirect your user to.
157157 */
158158 this . when = function ( what , handler ) {
159159 var redirect , handlerIsString = isString ( handler ) ;
You can’t perform that action at this time.
0 commit comments