• Overview
@angular/common

HashLocationStrategy

Class

A LocationStrategy used to configure the Location service to represent its state in the hash fragment of the browser's URL.

  
    class HashLocationStrategy extends LocationStrategy implements OnDestroy {}
  
  

ngOnDestroy

void
@returnsvoid

onPopState

void
@returnsvoid

getBaseHref

string
@returnsstring

path

string
@paramincludeHashboolean
@returnsstring

prepareExternalUrl

string
@paraminternalstring
@returnsstring

pushState

void
@paramstateany
@paramtitlestring
@parampathstring
@paramqueryParamsstring
@returnsvoid

replaceState

void
@paramstateany
@paramtitlestring
@parampathstring
@paramqueryParamsstring
@returnsvoid

forward

void
@returnsvoid

back

void
@returnsvoid

getState

unknown
@returnsunknown

historyGo

void
@paramrelativePositionnumber
@returnsvoid
Jump to details