ima-plugin-local-storage

0.15.0 • Public • Published

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();
	...
}

Package Sidebar

Install

npm i ima-plugin-local-storage

Weekly Downloads

0

Version

0.15.0

License

MIT

Unpacked Size

7.98 kB

Total Files

5

Last publish

Collaborators

  • mjancarik