I’m using Angular2 with Android.
Here’s what I’m trying to do: I want to
- load an image via URL
- when the image has been loaded, I want to fade it in
Therefore I need something (an Event?) to react on. I tried it with this one:
<Image loaded="callEvent()" src="https://imageurl.com/image.png"></Image>
However, it did not work. Then I tried it with
isLoaded="callEvent()", but it did not work either:
So, is there a way in Angular2, to determine if the Image has been loaded, so a function can be called after that?
Thanks for your help!