Image Not Loading


#1

I have this code.

<ion-item ng-repeat='item in videos' class="item-thumbnail-left item-text-wrap">
            <img scr="http://placehold.it/80x80">
</ion-item>

I am trying to load an image from placehost.it but it is not loading the image.
I have added

<allow-navigation href="http://*/*" />

the above code to my config.xml file. But it is still not loading. What shall I do?


#2
  • Emulator or real device?
  • What Cordova version?
  • Have you used Whitelist plugin?

#3

I am using chrome.
Cordova Version 5.2.0
Yes I used the Whiltelist plug in and I added on the config.xml file.


#4

What about security meta tag?


#5

I also added that, still the same.


#6

Not sure if this is only a typo in your post, but you have the attribute as scr when it should be src

<img scr="http://placehold.it/80x80">

#7

Yes, that and Cross Origin sharing. It is all fixed now.