Search
Preparing search index...
The search index is not available
@storefront/core
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
UrlService
Class UrlService
Hierarchy
BaseService
<
Options
>
UrlService
Implements
Service
Index
Interfaces
Options
Routes
Url
State
Functions
Type aliases
Url
State
Function
Constructors
constructor
Properties
app
beautifier
opts
get
Base
Path
Methods
build
Url
And
Replace
History
emit
Url
Updated
filter
State
generate
Routes
handle
Current
Location
handle
Url
init
listen
For
History
Change
refresh
State
replace
History
rewind
trigger
Request
update
History
Object literals
url
State
Type aliases
Static
Url
State
Function
Url
State
Function
:
function
Type declaration
(
state
:
any
)
:
any
Parameters
state:
any
Returns
any
Constructors
constructor
new
Url
Service
(
app
:
StoreFront
, opts
:
Options
)
:
UrlService
Parameters
app:
StoreFront
opts:
Options
Returns
UrlService
Properties
Protected
app
app
:
StoreFront
beautifier
beautifier
:
SimpleBeautifier
Protected
opts
opts
:
Options
Static
get
Base
Path
get
Base
Path
:
getBasePath
= Utils.getBasePath
Methods
build
Url
And
Replace
History
build
Url
And
Replace
History
(
__namedParameters
:
object
)
:
void
Parameters
__namedParameters:
object
route
:
string
state
:
State
Returns
void
emit
Url
Updated
emit
Url
Updated
(
oldUrl
:
string
, newUrl
:
string
, payload
:
string
)
:
void
Parameters
oldUrl:
string
newUrl:
string
payload:
string
Returns
void
filter
State
filter
State
(
state
:
State
)
:
object
Parameters
state:
State
Returns
object
session
:
session
data
:
object
past
:
undefined
[]
present
:
object
products
:
ProductWithMetadata
[]
generate
Routes
generate
Routes
(
)
:
any
Returns
any
handle
Current
Location
handle
Current
Location
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
handle
Url
handle
Url
(
)
:
void
Returns
void
init
init
(
)
:
void
Returns
void
listen
For
History
Change
listen
For
History
Change
(
)
:
void
Returns
void
refresh
State
refresh
State
(
state
:
any
)
:
Promise
<
any
>
Parameters
state:
any
Returns
Promise
<
any
>
replace
History
replace
History
(
url
:
string
)
:
void
Parameters
url:
string
Returns
void
rewind
rewind
(
event
:
PopStateEvent
)
:
void
Parameters
event:
PopStateEvent
Returns
void
trigger
Request
trigger
Request
(
route
:
string
, urlState
:
SearchUrlState
|
DetailsUrlState
)
:
void
Parameters
route:
string
urlState:
SearchUrlState
|
DetailsUrlState
Returns
void
update
History
update
History
(
__namedParameters
:
object
)
:
void
Parameters
__namedParameters:
object
route
:
string
state
:
State
Returns
void
Object literals
url
State
url
State
:
object
details
details
:
detailsUrlState
= Utils.detailsUrlState
navigation
navigation
:
navigationUrlState
= Utils.navigationUrlState
pastpurchase
pastpurchase
:
pastPurchaseUrlState
= Utils.pastPurchaseUrlState
search
search
:
searchUrlState
= Utils.searchUrlState
Globals
Url
Service
Options
Routes
Url
State
Functions
Url
State
Function
constructor
app
beautifier
opts
get
Base
Path
build
Url
And
Replace
History
emit
Url
Updated
filter
State
generate
Routes
handle
Current
Location
handle
Url
init
listen
For
History
Change
refresh
State
replace
History
rewind
trigger
Request
update
History
url
State
Generated using
TypeDoc