Skip to content

Commit 27f5eed

Browse files
tbondwilkinsonthePunderWoman
authored andcommitted
refactor(common): Add fake implementation of PlatformNavigation. (angular#52363)
This implementation does most, but not all, of the things the native Navigation API does. Also adds a spec that tests all the currently supported behaviors. PR Close angular#52363
1 parent 77770c6 commit 27f5eed

File tree

6 files changed

+2995
-12
lines changed

6 files changed

+2995
-12
lines changed

packages/common/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ ng_module(
3131
),
3232
deps = [
3333
"//packages/core",
34-
"@npm//rxjs",
3534
"@npm//@types/dom-navigation",
35+
"@npm//rxjs",
3636
],
3737
)
3838

packages/common/src/navigation/index.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/common/src/navigation/platform_navigation.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import {Injectable} from '@angular/core';
1111
/**
1212
* This class wraps the platform Navigation API which allows server-specific and test
1313
* implementations.
14-
*
15-
* @internal
1614
*/
1715
@Injectable({providedIn: 'platform', useFactory: () => window.navigation})
1816
export abstract class PlatformNavigation extends Navigation {

0 commit comments

Comments
 (0)