JavaScript AngularJS: ng-class for dynamic base64 encoded image as background-image angularjs class dynamic,angularjs dynamic class name,angularjs dynamic class

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 Is there a way to set background-image as a base64 encoded image in javascript?) but I haven't figured out any solution for AngularJS yet. This approach of mine does not seem to work out:

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

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

Answer:1

I am Implementing push notification in ionic using this tutorial: http://devdactic.com/ionic-push-notifications/ I have succesfully done using this. I got device token: like: Got token: DEV-...

I am Implementing push notification in ionic using this tutorial: http://devdactic.com/ionic-push-notifications/ I have succesfully done using this. I got device token: like: Got token: DEV-...

I have an empty-star button like this, <button type="button" class="btn btn-default btn-lg" id="refresh"> <span class="glyphicon glyphicon-star-empty"></span> </button> ...

I have an empty-star button like this, <button type="button" class="btn btn-default btn-lg" id="refresh"> <span class="glyphicon glyphicon-star-empty"></span> </button> ...

I am trying to update other user's information in Parse which is stored in User class. Initially I tried following code: 1. var user = Parse.User; var query = new Parse.Query(user); query.equalTo("...

I am trying to update other user's information in Parse which is stored in User class. Initially I tried following code: 1. var user = Parse.User; var query = new Parse.Query(user); query.equalTo("...

I'm using sw-toolbox, which is a library for service-worker provided by Google. I'd like to combine the cacheFirst strategy (see readme in link above) with a fetch from network after successfully ...

I'm using sw-toolbox, which is a library for service-worker provided by Google. I'd like to combine the cacheFirst strategy (see readme in link above) with a fetch from network after successfully ...

  1. force service worker update
  2. force reload service worker
  3. force unregister service worker
  4. force clear service worker cache
  5. force install service worker
  6. firefox force service worker update
  7. service worker force update cache
  8. service worker force update on reload
  9. service worker force activate