Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs($routeProvider): document route.resolve rejection #4447

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/ngRoute/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ function $RouteProvider(){
* - `resolve` - `{Object.<string, function>=}` - An optional map of dependencies which should
* be injected into the controller. If any of these dependencies are promises, they will be
* resolved and converted to a value before the controller is instantiated and the
* `$routeChangeSuccess` event is fired. The map object is:
* {@link ngRoute.$route#$routeChangeSuccess $routeChangeSuccess} event is fired. If any of theses
* dependencies are promises, when rejected the {@link ngRoute.$route#$routeChangeError $routeChangeError}
* event is fired. The map object is:
*
* - `key` – `{string}`: a name of a dependency to be injected into the controller.
* - `factory` - `{string|function}`: If `string` then it is an alias for a service.
Expand Down