ngx-image-cache
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i ngx-image-cache

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

35.4 kB

Total Files

16

Last publish

Collaborators

  • adityamr15