0.15.0 • Published 5 years ago

ima-plugin-local-storage v0.15.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

ima-plugin-local-storage

This is the local-storage plugin for the IMA.js application. You can find the IMA.js skeleton application at https://github.com/seznam/IMA.js-skeleton or visit our site imajs.io.

Installation

npm install ima-plugin-local-storage --save
// /app/build.js

var vendors = {
	common: [
        'ima-plugin-local-storage'
	]
};
// /app/config/bind.js

import { LocalStorage } from 'ima-plugin-local-storage';

oc.bind('LocalStorage', LocalStorage);
// /app/config/service.js

const localStorage = oc.get('LocalStorage');

if ($window.isClient()) {
	...
	// initializes local storage
	LocalStorage.init();
	...
}