Simple, tree-shakable, AoT, Universal and Web Worker friendly common cache service for Angular (2 and beyond). Offers MemoryStorage, LocalStorage, SessionStorage and IndexedDB services.
$ npm i common-cache --save
Should work out of the box with webpack, respectively angular-cli. All you need to do is to include NgResizableModule
:
import { CommonCache } from 'common-cache';
@NgModule({
imports: [CommonCacheModule],
...
})
class AppModule {}
// tools/config/project.config.ts
...
// Add packages (e.g. common-cache)
let additionalPackages: ExtendPackages[] = [{
name: 'common-cache',
path: 'node_modules/common-cache/common-cache.bundle.js'
}];
this.addPackagesBundles(additionalPackages);
...
This package is based on mgechv's ngresizable and module publishing guide.
MIT