3.0.0 • Published 6 years ago

image-helper v3.0.0

Weekly downloads
23
License
MIT
Repository
github
Last release
6 years ago

ImageHelper

Ever experienced broken image like Image example

If ever this happen that you loose your image but there will always be a backup for you. We've added an extra feature which will boost your page load time to upto 10X. As we load the image after the page load successfully so you angular app will turn much faster using this plugin.

Getting Started

npm install image-helper --save

Version above 3.0 of image-helper is suggested Then in your code app.module.ts

    import { ImageHelperModule } from  './image-helper/image-helper.module';
    @NgModule({    
	    imports: [
	    ...otherImports,    
	    ImageHelperModule    
	    ]
    })

Then in your code app.component.ts

import { ImageHelperService, ImageConfig } from  './image-helper/image-helper.service';
constructor(public  imgHelper:  ImageHelperService) {}    
localConfig:  ImageConfig  = { imageFallbackPath:  'https://www.gstatic.com/webp/gallery3/1.png',
	addLoader:  true,
	loader:  'rotating-plane',
	pageLoadBoost:  true
};
ngOnInit() {
	    this.imgHelper.setGlobal({ imageFallbackPath:  'https://www.gstatic.com/webp/gallery3/2.png',    
	    addLoader:  true,    
	    loader:  'rotating-plane',    
	    pageLoadBoost:  true    
    });    
}

Then in your code app.component.scss

@import  '~image-helper/loader';

Working Examples

Here's the demo on stackblitz

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository. To install a particular version do it like this npm i image-helper@3.0.0 --save

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

Thanks to everyone who'll use this plugin as this is my first plugin so actively looking forward to work on it. So all the issues are welcomed and I'll look forward to actively work on them.

3.0.0

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago