Skip to content

Commit 93ef6b5

Browse files
JanDalFExpFront
authored andcommitted
docs($urlProvider): wrong param type
1 parent 6ce8710 commit 93ef6b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/urlRouter.js

+3-3
Original file line numberDiff line numberDiff 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
*
@@ -151,7 +151,7 @@ function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {
151151
* </pre>
152152
*
153153
* @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.
155155
*/
156156
this.when = function (what, handler) {
157157
var redirect, handlerIsString = isString(handler);

0 commit comments

Comments
 (0)