Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Update previous view $scope data

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>