Loading image src using a variable containing base64 data in AngularJS

前端 未结 2 943
谎友^
谎友^ 2020-12-03 16:35

Loading image using variable containing base64 data in AngularJS

I am trying to find the right way to load a image source from a variable containing <

相关标签:
2条回答
  • 2020-12-03 17:19

    I admit I spent way too much time trying to fix similar problem,

    my problem was I had extra brace here (see three braces at end):

     ng-attr-src="{{aad.form.imageBase64Temp}}}"
    
    0 讨论(0)
  • 2020-12-03 17:41

    The content of the ng-src needs to be interpolated: Try this:

    <img data-ng-src="{{image.dataURL}}"/>
    
    0 讨论(0)
提交回复
热议问题