Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add withErrorHandler feature to provideRouter #48551

Closed
wants to merge 2 commits into from

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
goldens/public-api/router/index.md Outdated Show resolved Hide resolved
packages/router/src/provide_router.ts Outdated Show resolved Hide resolved
packages/router/src/provide_router.ts Outdated Show resolved Hide resolved
`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.
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 👍

packages/router/src/index.ts Outdated Show resolved Hide resolved
`errorHandler` and `malformedUriErrorHandler` were already deprecated in
the Router class public API. This change updates the deprecation to
extend to `RouterModule.forRoot` configuration options.
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.

None yet

6 participants