RevillWeb / img-2

Replace <img /> elements with <img-2> to automatically pre-cache images and improve page performance.
MIT License
1.89k stars 63 forks source link

Errors with Angular 2 and up #13

Open Almo7aya opened 6 years ago

Almo7aya commented 6 years ago

Hello, I want to use this with Angular project, but I get an error because It uses a custom tag and Angular also uses the same, Angular throws an error 'img-2' is not a known element:.

b-barry commented 6 years ago

Try to add the Custom Elements Schema in your angular module : https://angular.io/api/core/CUSTOM_ELEMENTS_SCHEMA