RouteParams

RouteParams The router params of current state call

Constructor

new RouteParams(paramsopt, queryopt)

Parameters:
NameTypeAttributesDefaultDescription
paramsobject<optional>
{}
queryobject<optional>
{}

Methods

getParam(key, defaultValueopt) → {*|null}

Get param value by given key. If key does not exists, the defaultValue is returned

Parameters:
NameTypeAttributesDefaultDescription
keystring

Param key

defaultValue* | null<optional>
null

The default return value if given key does not exists

Returns:
Type: 
* | null

getParams() → {Object}

Get param object

Returns:
Type: 
Object

getQueries() → {Object}

Get query object

Returns:
Type: 
Object

getQuery(key, defaultValueopt) → {*|null}

Get query value by given key. If key does not exitss, the defaultValue is returned

Parameters:
NameTypeAttributesDefaultDescription
keystring

Query key

defaultValue* | null<optional>
null

The default return value if given key does not exists

Returns:
Type: 
* | null