I'm in the process of adding offline functionality to a Cordova app I'm developing. I have a PHP file that retrieves a list of images as JSON, which I then save on the client device using the FILESYSTEM API. However, when I try to display the images using AngularJS, the images don't show up even though the containers are visible. Do I need to parse the data in order for the images to display, or is there something else I'm missing?
{ $http({
method: 'POST', // I've also tried using the GET method
url: 'cdvfile://localhost/persistent/local_store/json1.json'
}).success(function(data){
$scope.clientData = data;
});
}
Here's how I'm attempting to display the images:
{<img class="image_dir" ng-src="cdvfile://localhost/persistent/local_store/{{image.image_dir}}">
}
Thank you in advance for any help!