there is a problem with asynchronous processing, but I don't know how to solve it.
I was working on the MVC pattern.
The controller should receive the model and hand over the data to the view, but the data received from the model is displayed as undefined.
here is code.
controller
model
when console.log(model)
If it is OK, the data should be in the list.(in this.#list
)
but But as you can see, it is Array(0)
I don't know how to solve it. I spent 2 to 3 hours. please help!