Ion-img and domsanitizer


#1

Hello, I’ve problem with ion-img and domsanitizer. When I import dom sanitizer, it will cause some problem like some link is broken in the middle and can’t be load event by sanitizer it self. Any Ideas how to fix it? Thanks


#2

Probably a stupid question, but you are doing this in conjunction with virtual scroll, right? That’s the only context in which you should be using <ion-img>.


#3

What’s virtual scroll? I use it on container.


#4

I hope it’s not stupid, because it’s not loading, event I use a model and use one way binding, the string is cut and lost half of the string, like being substring-ed…


#5

Then forget that <ion-img> exists. Use an ordinary <img> instead.


#6

Errr… why, Is there any explanation? I can’t see it on the ionic documentation.


#7

Note: ion-img is only meant to be used inside of virtual-scroll.