can-zone-storage.setItem
setItem(key, value)
Stores keyed data in the current data store.
var zoneStorage = require("can-zone-storage");
var value = 'Store me';
zoneStorage.setItem('key-name', value);
Parameters
- key
{String}
:The key name under which the data will be stored.
- value
{Any}
:The data to be stored.