Skip to content

Commit

Permalink
docs($urlProvider): wrong param type
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDalF authored and ExpFront committed Jun 23, 2016
1 parent 6ce8710 commit 93ef6b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/urlRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {
* });
* </pre>
*
* @param {object} rule Handler function that takes `$injector` and `$location`
* @param {function} rule Handler function that takes `$injector` and `$location`
* services as arguments. You can use them to return a valid path as a string.
*
* @return {object} `$urlRouterProvider` - `$urlRouterProvider` instance
Expand Down Expand Up @@ -93,7 +93,7 @@ function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {
* });
* </pre>
*
* @param {string|object} rule The url path you want to redirect to or a function
* @param {string|function} rule The url path you want to redirect to or a function
* rule that returns the url path. The function version is passed two params:
* `$injector` and `$location` services, and must return a url string.
*
Expand Down Expand Up @@ -151,7 +151,7 @@ function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {
* </pre>
*
* @param {string|object} what The incoming path that you want to redirect.
* @param {string|object} handler The path you want to redirect your user to.
* @param {string|function} handler The path you want to redirect your user to.
*/
this.when = function (what, handler) {
var redirect, handlerIsString = isString(handler);
Expand Down

0 comments on commit 93ef6b5

Please sign in to comment.