cdl-localstorage
Version:
This is a simple local storage which is developed using javascript.
2 lines • 963 B
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("cdl-localstorage",["exports","@angular/core"],t):t(e["cdl-localstorage"]={},e.ng.core)}(this,function(e,t){"use strict";var o=(r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[]},r.ngInjectableDef=t.defineInjectable({factory:function(){return new r},token:r,providedIn:"root"}),r);function r(){this.setValue=function(e,t){localStorage.setItem(e,t)},this.getValue=function(e){return localStorage.getItem(e)},this.clearValue=function(e){localStorage.removeItem(e)},this.clearAll=function(){localStorage.clear()}}var n=(a.decorators=[{type:t.NgModule,args:[{declarations:[],imports:[],exports:[]}]}],a);function a(){}e.LocalstorageService=o,e.LocalstorageModule=n,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=cdl-localstorage.umd.min.js.map