AngularJS dynamic image sources

前端 未结 1 1205
隐瞒了意图╮
隐瞒了意图╮ 2021-01-07 22:02

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

相关标签:
1条回答
  • 2021-01-07 22:34

    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}}"/>
    
    0 讨论(0)
提交回复
热议问题