docs: typo on function name for handleError() (#26261)

changed function name `errorHandle()` to `handleError()`
PR Close #26261
This commit is contained in:
Wei Lun 2018-10-05 11:14:26 +08:00 committed by Jason Aden
parent 25289664ea
commit 8e71ad6027
1 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ innocuous result so that the application keeps working.
#### _handleError_
The following `errorHandler()` will be shared by many `HeroService` methods
The following `handleError()` will be shared by many `HeroService` methods
so it's generalized to meet their different needs.
Instead of handling the error directly, it returns an _error handler_ function to `catchError` that it
@ -223,7 +223,7 @@ After reporting the error to console, the handler constructs
a user friendly message and returns a safe value to the app so it can keep working.
Because each service method returns a different kind of `Observable` result,
`errorHandler()` takes a type parameter so it can return the safe value as the type that the app expects.
`handleError()` takes a type parameter so it can return the safe value as the type that the app expects.
### Tap into the _Observable_