ngx-image-cache
v0.0.1
Published
Angular library for caching image source
Downloads
58
Maintainers
Readme
ngx-image-cache
This library will stored image base64 data to windows object and <img/> element will be load image data from windows object.
Installation
npm install --save ngx-image-cacheHow to use?
Need to import NgxImageCacheModule in AppModule.
import { NgxImageCacheModule } from 'ngx-image-cache';
@NgModule({
...
imports: [
...
NgxImageCacheModule
...
],
...
bootstrap: [AppComponent]
})
export class AppModule { }
In your html component. Just call the library component like below.
<ngx-image-cache
src="/your/image/url.png"></ngx-image-cache>To Do
For the next development image data will be stored to indexDB instead windows object (need to do RnD for that).
License
MIT
