PlatformLocation encapsulates all of the direct calls to platform APIs. This class should not be used directly by an application developer. Instead, use Location.
PlatformLocation
Location
class BrowserPlatformLocation extends PlatformLocation { getBaseHrefFromDOM(): string; onPopState(fn: LocationChangeListener): VoidFunction; onHashChange(fn: LocationChangeListener): VoidFunction; readonly href: string; readonly protocol: string; readonly hostname: string; readonly port: string; get pathname(): string; readonly search: string; readonly hash: string; pushState(state: any, title: string, url: string): void; replaceState(state: any, title: string, url: string): void; forward(): void; back(): void; historyGo(relativePosition?: number): void; getState(): unknown;}