Does not allow to create img with base64 src
igormisha opened this issue · 4 comments
igormisha commented
First I created template like this:
<img src="data:image/jpeg;base64,{{new.ImageSmall}}">
And the angularjs databinding with image src worked as expected.
Then I tried to use this module with img src attributes, which contain base64 string, presenting image resource, like this:
<img bo-src="'data:image/jpeg;base64,' + new.ImageSmall">
But this doesn't work. Is there another way to pass expression to img src?
igormisha commented
Sure, here it is: http://plnkr.co/edit/BgiM8lkVg8XUQkbgwvQt?p=preview
igormisha commented
It appeared that bo-src is not enough, it was neccessary to add 'bindonce' attribute to img tag or it's parent. My fault, everything works just fine! Thanks for quick reply!
Pasvaz commented
no problem, glad you fixed it.