setVar

Description

Creates a global variable with a value associated to it.

Input / Parameter

Output

Callback

N/A

Video

Coming Soon.

Example

Steps

  1. This will create a global variable called "version" containing the value "1.0.0" that can be accessed by other components or on other pages of your app.

Result

The value of the global variable version can be accessed by using the getVar function.

Using the above flow will display the value 1.0.0 in the browser console.

Last updated