Use ng-src
in the following format
<img ng-src="data:image/JPEG;base64,{{image}}">
Don’t forget to add a sanitization filter for data
to not be marked as unsafe
by angular:
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|file|ftp|blob):|data:image\//);
More Related Contents:
- Share data between AngularJS controllers
- Delete firebase data older than 2 hours
- How do I set the value property in AngularJS’ ng-options?
- How to pass parameters using ui-sref in ui-router to controller
- AngularJS – Any way for $http.post to send request parameters instead of JSON?
- How to improve performance of ngRepeat over a huge dataset (angular.js)?
- Maintain model of scope when changing between views in AngularJS
- Break promise chain and call a function based on the step in the chain where it is broken (rejected)
- use $http inside custom provider in app config, angular.js
- What is the difference between & vs @ and = in angularJS
- AngularJS communication between directives
- AngularJS toggle class using ng-class
- How do I get the Back Button to work with an AngularJS ui-router state machine?
- Export to xls using angularjs
- Issue with Android Hybid app to display remote image with Ionic framework?
- orderBy array item value in Angular ng-repeat
- call function inside $sce.trustAsHtml() string in Angular js
- How to make POST requests with the FormData API
- AngularJS abort all pending $http requests on route change
- Angularjs: understanding a recursive directive
- Should we use jQuery with AngularJS? [closed]
- Complex nesting of partials and templates
- How to use ng-if with ng-repeat?
- AngularJS: ng-selected doesn’t show selected value [duplicate]
- How can I populate a select dropdown list from a JSON feed with AngularJS?
- Reason for using array notation when defining AngularJS Controller
- What is the difference between the $parse, $interpolate and $compile services?
- Mocking and Stubbing with protractor
- AngularJs – Best-Practices on adding an active class on click (ng-repeat)
- AngularJS event on window innerWidth size change