BrowserPlatformLocation
Class
stable
PlatformLocation encapsulates all of the direct calls to platform APIs.
This class should not be used directly by an application developer. Instead, use
Location.
API
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;}
getBaseHrefFromDOM
string@returns
stringonPopState
VoidFunction@returns
VoidFunctiononHashChange
VoidFunction@returns
VoidFunctionhref
stringprotocol
stringhostname
stringport
stringpathname
stringpathname
stringsearch
stringhash
stringpushState
void@paramstate
any@paramtitle
string@paramurl
string@returns
voidreplaceState
void@paramstate
any@paramtitle
string@paramurl
string@returns
voidforward
void@returns
voidback
void@returns
voidhistoryGo
void@paramrelativePosition
number@returns
voidgetState
unknown@returns
unknownJump to details