• Overview
@angular/common

BrowserPlatformLocation

Class

PlatformLocation encapsulates all of the direct calls to platform APIs. This class should not be used directly by an application developer. Instead, use Location.

  
    class BrowserPlatformLocation extends PlatformLocation {}
  
  

getBaseHrefFromDOM

string
@returnsstring

onPopState

VoidFunction
@returnsVoidFunction

onHashChange

VoidFunction
@returnsVoidFunction

href

string

protocol

string

hostname

string

port

string

pathname

string

pathname

string

hash

string

pushState

void
@paramstateany
@paramtitlestring
@paramurlstring
@returnsvoid

replaceState

void
@paramstateany
@paramtitlestring
@paramurlstring
@returnsvoid

forward

void
@returnsvoid

back

void
@returnsvoid

historyGo

void
@paramrelativePositionnumber
@returnsvoid

getState

unknown
@returnsunknown
Jump to details