Is it possible to retrieve data from an API and gather each user's posts along with their comments in a single JSON object?
To fetch posts, you can utilize the following API: https://jsonplaceholder.typicode.com/posts
As for retrieving comments, you may want to refer to this API: https://jsonplaceholder.typicode.com/comments
//Function to Get User Posts And Comments
getUser() {
this.http.get('https://jsonplaceholder.typicode.com/posts') && this.http.get('https://jsonplaceholder.typicode.com/comments')
.subscribe(data => {
this.posts = data;
});
}