Yes, in loadcomment function . i already use:
app.factory("services", ['$http', function($http) {
var serviceBase = 'services/'
var obj = {};
obj.getComments = function(){
return $http.get("data/comment.xml");
}
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;
});
};
But it can not re load.
On Thursday, August 27, 2015 at 11:13:20 AM UTC-4, Sander Elias wrote:
>
> Hi Thé
>
> Reload the xml file, or manual push the added comment to your result set
> in memory.
>
> Regards
> Sander
>
--
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.