The addon provides a storageFor computed property that returns a proxy and persists the changes to localStorage or sessionStorage. It ships with an ember-data adapter.
Implements a configurable namespace for localStorage keys used by the addon.
For backward compatibility this is a opt-in feature. To activate it there are the following options:
// config/environment.js
module.exports = function() {
var ENV = {
modulePrefix: 'my-app',
'ember-local-storage': {
namespace: true, // will use the modulePrefix e.g. 'my-app'
namespace: 'customNamespace', // will use 'customNamespace'
keyDelimiter: '/' // will use / as a delimiter - default is :
}
}
};
If a namespace is provided (true or custom) the format of a key is ${namespace}${delimiter}${key}.
Implements a configurable namespace for
localStorage
keys used by the addon. For backward compatibility this is a opt-in feature. To activate it there are the following options:If a namespace is provided (
true
or custom) the format of a key is${namespace}${delimiter}${key}
.TODO:
closes #168 ref #222