From a28cf2438bd69c890e1876edcc765aed243aeb2f Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Thu, 9 Feb 2023 16:34:08 +0100 Subject: [PATCH] docs(router): fix error handler deprecation (#49015) The deprecation mentions `withErrorHandler` whereas the feature is called `withNavigationErrorHandler` since 15eccef4ebf58c889b2a28988ebcc297e3cd2df6. PR Close #49015 --- packages/router/src/router.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/router/src/router.ts b/packages/router/src/router.ts index fc3a4eca6e1..e816e433fad 100644 --- a/packages/router/src/router.ts +++ b/packages/router/src/router.ts @@ -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;