Delete a param int the fragment of the location's URI.
Parameters
key: string
Param key.
Returns void
deleteParam
deleteParam(key): void
Delete a param in the location's URI.
Parameters
key: string
Param key.
Returns void
getFragmentParam
getFragmentParam(key): string
Get a param from the fragment of the location's URI.
Parameters
key: string
Param key.
Returns string
Param value.
getFragmentParamAsInt
getFragmentParamAsInt(key): number
Get a param from the fragment of the location's URI as integer. If the entry
does not exist, or if the value can not be parsed as integer, undefined is returned.
Parameters
key: string
Param key.
Returns number
Param value.
getFragmentParamKeys
getFragmentParamKeys(): string[]
Get an array with all existing param's keys from the fragment of the location's URI.
Returns string[]
Param keys.
getFragmentParamKeysWithPrefix
getFragmentParamKeysWithPrefix(prefix): string[]
Get an array with all existing param's keys from the fragment of the location's URI
that start with the given prefix.
Parameters
prefix: string
Key prefix.
Returns string[]
Param keys.
getParam
getParam(key): string
Get a param in the location's URI.
Parameters
key: string
Param key.
Returns string
Param value.
getParamAsFloat
getParamAsFloat(key): number
Get a param in the location's URI as a floating point number.
If the entry does not exist, or if the value can not be parsed,
undefined is returned.
Parameters
key: string
Param key.
Returns number
Param value.
getParamAsInt
getParamAsInt(key): number
Get a param in the location's URI as integer. If the entry does not exist,
or if the value can not be parsed as integer, undefined is returned.
Parameters
key: string
Param key.
Returns number
Param value.
getParamKeys
getParamKeys(): string[]
Get an array with all existing param's keys in the location's URI.
Returns string[]
Param keys.
getParamKeysWithPrefix
getParamKeysWithPrefix(prefix): string[]
Get an array with all existing param's keys in the location's URI that start
with the given prefix.
Parameters
prefix: string
Key prefix.
Returns string[]
Param keys.
getPath
getPath(): string
Get the location's current path.
Returns string
The path.
getUriString
getUriString(): string
Get the location's URI as a string
Returns string
The URI.
hasFragmentParam
hasFragmentParam(key): boolean
Check if a param exists in the fragment of the location's URI.
Parameters
key: string
Param key.
Returns boolean
True if the param exists.
hasParam
hasParam(key): boolean
Check if a param exists in the location's URI.
Parameters
key: string
Param key.
Returns boolean
True if the param exists.
refresh
refresh(): void
Refresh the the location's URI.
Returns void
setPath
setPath(path): void
Set a new path for this location.
Parameters
path: string
Path.
Returns void
updateFragmentParams
updateFragmentParams(params): void
Set or create a param in the fragment of the location's URI.
Delete a param int the fragment of the location's URI.