Skip to content

Commit 3c94379

Browse files
JanDalFwesleycho
authored andcommitted
docs($urlProvider): wrong param type
1 parent bb96722 commit 3c94379

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/url/urlRouter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)