@gianko wrote:
Hi!,
I have in my app this "Posts" view with a $scope.posts to be an array of posts that I get from an $http call:
[{id:1, tilte: "lorem ipsum", liked: false},{id:2, tilte: "lorem ipsum", liked: false}...]
And the single view of the posts where I get the data also from an $http call and also I can like and unliked the post.
Which is the correct way to update the cached data of $scope.posts so when the user go back to the previous view the data is the same as in the single?
Thanks in advance!
Posts: 1
Participants: 1