Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
77
rated 0 times [  81] [ 4]  / answers: 1 / hits: 24776  / 10 Years ago, sun, july 6, 2014, 12:00:00
<img src={{ twt.display }}/>


I have the above image tag where the src is in the scope but when I look at the browser console log it shows the following




Resource interpreted as Image but transferred with MIME type
text/html: http://example.com/%7B%7Btwt.display%7D%7D.




The images do show as intended but I wanted to know if there was a way of stopping this message appearing?


More From » angularjs

 Answers
6

Use ng-src to avoid strange undeliverable requests being made by browser.



Once the expression in ng-src is resolved, it will update the src for the tag,



<img ng-src={{twt.display}}/>

[#70303] Thursday, July 3, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
collinisaaka

Total Points: 194
Total Questions: 105
Total Answers: 104

Location: Tonga
Member since Tue, Nov 30, 2021
3 Years ago
;