Pasvaz/bindonce

Does not allow to create img with base64 src

igormisha opened this issue · 4 comments

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?

it should work, can you create a plunker so I can test it?

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!

no problem, glad you fixed it.