Skip to content

Conversation

@atscott
Copy link
Contributor

@atscott atscott commented Dec 20, 2022

Commit 1:
withErrorHandler is a close replacement for the
RouterModule.forRoot.errorHandler / Router.errorHandler.
It provides a quick, short way for users to define a function to handle
NavigationError events.

Commit 2:
errorHandler and malformedUriErrorHandler were already deprecated in
the Router class public API. This change updates the deprecation to
extend to RouterModule.forRoot configuration options.

@atscott atscott added the target: minor This PR is targeted for the next minor release label Dec 20, 2022
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: docs labels Dec 20, 2022
@ngbot ngbot bot added this to the Backlog milestone Dec 20, 2022
@atscott atscott force-pushed the errorHandlerFeature branch 2 times, most recently from 52f01f9 to 929be8d Compare December 20, 2022 18:23
@pullapprove pullapprove bot requested a review from alxhub December 20, 2022 23:24
@atscott atscott force-pushed the errorHandlerFeature branch from 929be8d to f89e13c Compare December 21, 2022 00:04
`withNavigationErrorHandler` is a close replacement for the
`RouterModule.forRoot.errorHandler` / `Router.errorHandler`.
It provides a quick, short way for users to define a function to handle
`NavigationError` events.
@atscott atscott force-pushed the errorHandlerFeature branch from f89e13c to 981807d Compare December 21, 2022 00:05
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one comment about an alias 👍

`errorHandler` and `malformedUriErrorHandler` were already deprecated in
the Router class public API. This change updates the deprecation to
extend to `RouterModule.forRoot` configuration options.
@atscott atscott force-pushed the errorHandlerFeature branch from 981807d to e89378e Compare December 22, 2022 01:19
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed-for: public-api

Copy link
Contributor

@dylhunn dylhunn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed-for: public-api

Copy link
Member

@pkozlowski-opensource pkozlowski-opensource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Reviewed-for: public-api

@atscott atscott removed the request for review from alxhub January 3, 2023 22:01
@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Jan 3, 2023
@atscott atscott added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Jan 4, 2023
@atscott
Copy link
Contributor Author

atscott commented Jan 4, 2023

merge assistance: Nothing is failing but checks aren't completing

@alxhub
Copy link
Member

alxhub commented Jan 5, 2023

This PR was merged into the repository by commit 15eccef.

@alxhub alxhub closed this in 31b94c7 Jan 5, 2023
alxhub pushed a commit that referenced this pull request Jan 5, 2023
`errorHandler` and `malformedUriErrorHandler` were already deprecated in
the Router class public API. This change updates the deprecation to
extend to `RouterModule.forRoot` configuration options.

PR Close #48551
trekladyone pushed a commit to trekladyone/angular that referenced this pull request Feb 1, 2023
…er (angular#48551)

`withNavigationErrorHandler` is a close replacement for the
`RouterModule.forRoot.errorHandler` / `Router.errorHandler`.
It provides a quick, short way for users to define a function to handle
`NavigationError` events.

PR Close angular#48551
trekladyone pushed a commit to trekladyone/angular that referenced this pull request Feb 1, 2023
`errorHandler` and `malformedUriErrorHandler` were already deprecated in
the Router class public API. This change updates the deprecation to
extend to `RouterModule.forRoot` configuration options.

PR Close angular#48551
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: router detected: feature PR contains a feature commit merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants