mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Pawel Kozlowski
parent
865e67fcb4
commit
a28cf2438b
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user