Can anyone help me understand how to extract information from an object received through an HTTP POST request?
Below is the code I am using:
this.http.post(url, user, httpOptions).subscribe(result => {
console.log(result.status);
});
The issue arises when trying to access 'status' in console.log()
An error message displays: Property 'status' does not exist on type 'Object'.
How can I properly unwrap the response object stored in the result variable and access individual values in TypeScript?
If I use console.log(result), I can see all the values.