can-zone-storage.getItem
getItem(key)
Stores keyed data in the current data store.
var zoneStorage = require("can-zone-storage");
var test = zoneStorage.getItem('key-name') // test === undefined
var value = 'Store me';
zoneStorage.setItem('key-name', value);
zoneStorage.getItem('key-name') // test === 'Store me'
Parameters
- key
{String}
:The key name from which the data will be retrieved.