docs(router): fix error handler deprecation (#49015)

The deprecation mentions `withErrorHandler` whereas the feature is called `withNavigationErrorHandler` since 15eccef4eb.

PR Close #49015
This commit is contained in:
cexbrayat 2023-02-09 16:34:08 +01:00 committed by Pawel Kozlowski
parent 865e67fcb4
commit a28cf2438b

View file

@ -179,8 +179,8 @@ export class Router {
* A handler for navigation errors in this NgModule.
*
* @deprecated Subscribe to the `Router` events and watch for `NavigationError` instead.
* `provideRouter` has the `withErrorHandler` feature to make this easier.
* @see `withErrorHandler`
* `provideRouter` has the `withNavigationErrorHandler` feature to make this easier.
* @see `withNavigationErrorHandler`
*/
errorHandler = this.options.errorHandler || defaultErrorHandler;