Below, you can see the output from these two logs. The first clearly shows the full object with the property I\'m trying to access, but on the very next line of code, I can\
In My case, it just happens to be that even though i receive the data in the format of a model like myMethod(data:MyModelClass) object till the received object was of type string.
Which is y in console.log(data) i get the content.
Solution is just to parse the JSON(in my case)
const model:MyMOdelClass=JSON.parse(data);
Thought may be usefull.