AngularJS: ng-class for dynamic base64 encoded image as background-image
<p>Anyone managed to use ng-class for placing dynamic base64 encoded images as background-images for a div yet? Seems to work for JQuery (see <a href="https://stackoverflow.com/questions/17090571/is-there-a-way-to-set-background-image-as-a-base64-encoded-image-in-javascript">Is there a way to set background-image as a base64 encoded image in javascript?</a>) but I haven't figured out any solution for AngularJS yet.
This approach of mine does not seem to work out:</p>

<pre><code>&lt;div class="col-xs-2" ng-style="{'background-image':'url(data:image/jpeg;base64,{{dynamicImage}})'}"&gt;...&lt;/div&gt;
</code></pre>

<p><code>dynamicImage</code> holds the base64 image string which is loaded on the fly via a REST webservice. Any idea if this works at all and how?</p>