I Need some HELP …!!!
I followed a tutorial on how to fetch json data from an api
i need to fetch and display the details in my html page
Find below the url i used for fetching data :- https://jsonplaceholder.typicode.com/users
code given in provider :
getRemoteData()
{
return this.http.get(https://jsonplaceholder.typicode.com/users').map(res => res.json());
}
Code given in my typescript file of view page :-
public jobs:any;
ionViewDidLoad()
{
this.redditService.getRemoteData().subscribe(data => {
this.jobs = data;
console.log(this.jobs);
});
}
Am getting the json array printed in console. Now i need to print the array of objects in the html page