Translate

20 Eylül 2016 Salı

Angular.js image 404 Not Found

I had an error while get icon list

assets/svg/flags/%7B%7Bitem.key%7D%7D.svg 404 (Not Found) angular.min.js:193 
I find while searching this


instead of
<img src="{{c.icon}}" alt="{{c.name}}" ng-cloak>
you should use ng-src:
<img ng-src="{{c.icon}}" alt="{{c.name}}">



It is also necessary where angular library in use like  style should be ng-style
<li ng-style="{'background-image':'url(/static/'+imgURL+')'}">...</li>

http://stackoverflow.com/questions/21281984/angular-js-image-404-not-found

Hiç yorum yok:

Yorum Gönder

Bu Blogda Ara