Answer the question
In order to leave comments, you need to log in
Why does the variable return an empty object?
Straight to the point...
I'm trying to get data from json and put it in productData, but when I call console.log(this.productData) inside the method, it works fine, and when, after the method has worked, I try to display it in the console, an empty object is displayed. How does this happen and what am I doing wrong?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question