• Overview
@angular/common

PlatformLocation

Class

This class should not be used directly by an application developer. Instead, use Location.

  
    abstract class PlatformLocation {}
  
  

getBaseHrefFromDOM

string
@returnsstring

getState

unknown
@returnsunknown

onPopState

VoidFunction

Returns a function that, when executed, removes the popstate event handler.

@returnsVoidFunction

onHashChange

VoidFunction

Returns a function that, when executed, removes the hashchange event handler.

@returnsVoidFunction

href

string

protocol

string

hostname

string

port

string

pathname

string

hash

string

replaceState

void
@paramstateany
@paramtitlestring
@paramurlstring
@returnsvoid

pushState

void
@paramstateany
@paramtitlestring
@paramurlstring
@returnsvoid

forward

void
@returnsvoid

back

void
@returnsvoid

historyGo

void
@paramrelativePositionnumber
@returnsvoid
Jump to details