Fetch and json in Angular

28 views Asked by At

So fetch returns JSON and we can use .json() to extract the content as a promise. Let's say my promise is a variable named PR. How can I then extract the content of the promise and in which object should I save this? Saying that the fetch brought us a line in a table that had age, name, job. I want to save those in a class object.

0

There are 0 answers