zyra / ionic-image-loader

Ionic 2+ Component that loads images in a background thread and caches them for later use
MIT License
436 stars 137 forks source link

Is ionic 5.4.13 supported? I receive a run time error #279

Open etcware opened 4 years ago

etcware commented 4 years ago

I'm using ionic 5.4.13, angular 8. I tried to import ionic-image-loader, may be it is not supported. I imported the module in app.modules.ts as described in README and then I added the module in my page module. But I receive this error:

core.js:9110 ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'src' since it isn't a known property of 'img-loader'.
1. If 'img-loader' is an Angular component and it has 'src' input, then verify that it is part of this module....
gaurav-chandra commented 4 years ago

if you are using lazy loading (default in ionic 4+), you need to import the image loader in the page's module. Only app module will not work.

Fieel commented 4 years ago

Bruh not even Ionic 4 is supported

pcsantana commented 3 years ago

Actually there is a branch that supports Ionic >= 4 I am using it with Ionic 5 and Angular 9

https://github.com/zyra/ionic-image-loader/tree/v4