Skip to content

adityamr15/ngx-image-cache

Repository files navigation

npm npm npm type definitions

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-cache

How 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

About

Angular image library for caching image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published