URLParamsService

AngularJS Service for parsing/storing parameters from the URL & query string

Members

(private, inner) userParams :Object

Object containing relevant parameters parsed from URL by key/value.

Source:
Type:
  • Object

(private, inner) siteParams :Object

Object containing site parameters (such as token and slug) parsed from URL by key/value.

Source:
Type:
  • Object

Methods

(static) getParam(key) → {string}

Get URL Param

Source:
Parameters:
Name Type Description
key string
Returns:
Type:
string

(static) getUserParams() → {Object}

Get user parameters.

Source:
Returns:
Type:
Object

(static) getSiteParams() → {Object}

Get site parameters, overriding the slug if forceSlug is set.

Source:
Returns:
Type:
Object

(static) setDefaults()

Set default values in internal objects where necessary. This is called when the service is initialized.

Source: