-
Notifications
You must be signed in to change notification settings - Fork 26.6k
feat(common): Add experimental support for the Navigation API #63406
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
Conversation
The navigation API is part of interop 2025. You can find the implementation status for each major browser here: https://wpt.fyi/results/navigation-api?label=master&label=experimental&aligned&view=interop&q=label%3Ainterop-2025-navigation https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API BREAKING CHANGE: (test only) - `TestBed` now provides a fake `PlatformLocation` implementation that supports the Navigation API. This may break some tests, though we have not observed any failures internally. You can revert to the old default for `TestBed` by providing the `MockPlatformLocation` from `@angular/common/testing` in your providers: `{provide: PlatformLocation, useClass: MockPlatformLocation}`
7739e97
to
831b422
Compare
Deployed adev-preview for 831b422 to: https://ng-dev-previews-fw--pr-angular-angular-63406-adev-prev-t9oj84hw.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
There was a problem hiding this 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
There was a problem hiding this 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
This PR was merged into the repository. The changes were merged into the following branches:
|
The navigation API is part of interop 2025. You can find the implementation status for each major browser here:
https://wpt.fyi/results/navigation-api?label=master&label=experimental&aligned&view=interop&q=label%3Ainterop-2025-navigation
https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API
BREAKING CHANGE: (test only) -
TestBed
now provides a fakePlatformLocation
implementation that supports the Navigation API. This may break some tests, though we have not observed any failures internally. You can revert to the old default forTestBed
by providing theMockPlatformLocation
from@angular/common/testing
in your providers:{provide: PlatformLocation, useClass: MockPlatformLocation}