Ng-src not working


#1

After camera capture, $scope.lastPhoto = imageURI but <img ng-src={{lastPhoto}}> isnt showing the image though {{ lastPhoto }} = file:///storage/sdcard0/…/14018271661.jpg

my config:

.config(function($compileProvider){
 $compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|tel|img):/);
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|file|tel):/);
$compileProvider.imgSrcSanitizationWhitelist('img/');

})

Anyone else having this issue?


#2

Yeah I’m also having this issue, whereby using ng-src with handlebars doesn’t load the image