Hi , i am using php + angularjs . I have 2 functions :
function loadComment(){
services.getComments().then(function(data){
var source = x2js.xml_str2json(data.data);
var comments = ($filter('filter')(source.data.comment, {itemID: shopItemID
}));
$scope.comments = comments;
});
};
$scope.addComment = function()
{
var request = $http({
method: "post",
url: "xmlAction.php",
data: {
id:shopItemID,
functionname: 'addNewComment',
description: 'Description Comment',
name:'Alex'
},
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
});
loadComment();
};
After running add new comment function , xml file is already update, but
the function loadComment is still using old data from cache. How can i
solve it ?
Thanks.
--
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.