Class UrlParams
Helper object to read url params.
Available on $2sxc.urlParams
Methods
get(string)
Get a param from the url, no matter if it's behind ? or #
If not found, will return an empty string ''
Declaration
function get(name: string)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
isDebug()
Checks if debug is enabled in the URL
Declaration
Returns
require(string)
Get a required param from the url, no matter if it's behind ? or #
Will throw an error if not found
Declaration
function require(name: string)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns