MockLocationStrategy
Class
A mock implementation of LocationStrategy
that allows tests to fire simulated
location events.
API
class MockLocationStrategy extends LocationStrategy {}
internalBaseHref
string
internalPath
string
internalTitle
string
urlChanges
string[]
simulatePopState
void
@paramurl
string
@returns
void
path
string
@paramincludeHash
boolean
@returns
string
prepareExternalUrl
string
@paraminternal
string
@returns
string
pushState
void
@paramctx
any
@paramtitle
string
@parampath
string
@paramquery
string
@returns
void
replaceState
void
@paramctx
any
@paramtitle
string
@parampath
string
@paramquery
string
@returns
void
onPopState
void
@paramfn
(value: any) => void
@returns
void
getBaseHref
string
@returns
string
back
void
@returns
void
forward
void
@returns
void
getState
unknown
@returns
unknown
historyGo
void
@paramrelativePosition
number
@returns
void
Jump to details