up.Params up.Params.fromURL(url)
Class method

Constructs a new up.Params instance from the given URL's query string.

Constructs an empty up.Params instance if the given URL has no query string.

Example

let params = up.Params.fromURL('http://foo.com?foo=fooValue&bar=barValue')
let foo = params.get('foo')
// foo is now: 'fooValue'

Parameters

url
required

The URL from which to extract the query string.

Type: string

Return value

The params from the given URL's query string.

Type: up.Params