How to prevent ng-src to load image before data arrives?

后端 未结 4 532
暖寄归人
暖寄归人 2021-01-31 09:04

HTML:

 \"{{album.title}}\"

While running the app, it

4条回答
  •  旧巷少年郎
    2021-01-31 09:58

    like everyone else you can always show a loading sign before the image is completely loaded on the page. here is a fiddle containing the demo. you can use a different image in background before loading using .css('background-image','url('+ url_link_var +')');

    This is done and shown in Fiddle.

提交回复
热议问题