set

Apperyio.storage.variableName.set()

Replaces value of a specified storage variable.

Parameters summary

The method has the following parameter(s):

ParameterDescriptionRequired
valueNew value.Yes.
Example

Let's assume a storage variable Product holds the following:

var modelData = {"name":"Smartphone", "partNumber": 1000};
Apperyio.storage.Product.set(modelData);
var p = Apperyio.storage.Product.get();
console.log(p);
{name: "Smartphone", partNumber: 1000}