LocationStrategy
Class
Enables the Location
service to read route state from the browser's URL.
Angular provides two strategies:
HashLocationStrategy
and PathLocationStrategy
.
API
Description
abstract class LocationStrategy {}
path
string
@paramincludeHash
boolean | undefined
@returns
string
prepareExternalUrl
string
@paraminternal
string
@returns
string
getState
unknown
@returns
unknown
pushState
void
@paramstate
any
@paramtitle
string
@paramurl
string
@paramqueryParams
string
@returns
void
replaceState
void
@paramstate
any
@paramtitle
string
@paramurl
string
@paramqueryParams
string
@returns
void
forward
void
@returns
void
back
void
@returns
void
historyGo
void
@paramrelativePosition
number
@returns
void
onPopState
void
@returns
void
getBaseHref
string
@returns
string
Jump to details