mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00: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:
parent
865e67fcb4
commit
a28cf2438b
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue