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 @@ -61,7 +61,7 @@ function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {
6161 * });
6262 * </pre>
6363 *
64- * @param {object } rule Handler function that takes `$injector` and `$location`
64+ * @param {function } rule Handler function that takes `$injector` and `$location`
6565 * services as arguments. You can use them to return a valid path as a string.
6666 *
6767 * @return {object } `$urlRouterProvider` - `$urlRouterProvider` instance
@@ -97,7 +97,7 @@ function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {
9797 * });
9898 * </pre>
9999 *
100- * @param {string|object } rule The url path you want to redirect to or a function
100+ * @param {string|function } rule The url path you want to redirect to or a function
101101 * rule that returns the url path. The function version is passed two params:
102102 * `$injector` and `$location` services, and must return a url string.
103103 *
@@ -157,7 +157,7 @@ function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {
157157 * </pre>
158158 *
159159 * @param {string|object } what The incoming path that you want to redirect.
160- * @param {string|object } handler The path you want to redirect your user to.
160+ * @param {string|function } handler The path you want to redirect your user to.
161161 */
162162 this . when = function ( what , handler ) {
163163 var redirect , handlerIsString = isString ( handler ) ;
You can’t perform that action at this time.
0 commit comments