Snap.variables

This namespace provides access to the properties of app environment variables.

Example

Snap.variables.getValue("variable-name");

Methods

static getValue(name) → {string}

Get variable value

Parameters:
Name Type Description
name string

Variable Name

Returns:
string -

Value

static setValue(name, value)

Set variable value

Parameters:
Name Type Description
name string

Variable Name

value string

Variable Value