Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

atscott
Copy link
Contributor

@atscott atscott commented Aug 26, 2025

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}

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}`
@atscott atscott added the target: major This PR is targeted for the next major release label Aug 26, 2025
@angular-robot angular-robot bot added detected: breaking change PR contains a commit with a breaking change detected: feature PR contains a feature commit area: common Issues related to APIs in the @angular/common package labels Aug 26, 2025
@ngbot ngbot bot added this to the Backlog milestone Aug 26, 2025
@atscott atscott added adev: preview target: major This PR is targeted for the next major release and removed target: major This PR is targeted for the next major release labels Aug 26, 2025
Copy link

github-actions bot commented Aug 26, 2025

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.

https://ng-dev-previews-fw--pr-angular-angular-63406-adev-prev-t9oj84hw.web.app/api/common/PlatformNavigation

@pullapprove pullapprove bot requested a review from AndrewKushnir August 26, 2025 21:45
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

@pullapprove pullapprove bot requested a review from mmalerba August 26, 2025 21:45
Copy link
Member

@JeanMeche JeanMeche 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

@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Aug 26, 2025
@JeanMeche JeanMeche added target: major This PR is targeted for the next major release and removed target: major This PR is targeted for the next major release labels Aug 27, 2025
@mmalerba
Copy link
Contributor

This PR was merged into the repository. The changes were merged into the following branches:

@mmalerba mmalerba closed this in c795960 Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker adev: preview area: common Issues related to APIs in the @angular/common package breaking changes detected: breaking change PR contains a commit with a breaking change detected: feature PR contains a feature commit target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants