I am building an offline functionality for a Cordova app that I am
developing and I have a php file that gets only the list of images and I
have taken the JSON from it and saved in the client device through
FILESYSYTEM API and when I tried to retrieve it using angularjs, I couldn't
display the images, even though I can see the container of every one of the
images. Do I have to parse it so that it an be displayed or what am I
missing ?
{ $http({
method: 'POST', // I have used the GET method as well
url: 'cdvfile://localhost/persistent/local_store/json1.json'
}).success(function(data){
$scope.clientData = data;
});}
and here is how it is that I am trying to display it
<img class="image_dir"
ng-src="cdvfile://localhost/persistent/local_store/{{image.image_dir}}">
Thanks in advance
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.