a json but I want to wait for the answer in my main, like blocking till it’s done that I can work afterwards with it. I already thought about chaining everything in one .then, but this seems stupid.
Does somebody know what to do?
https://pastebin.com/XKWDr9Hu
must it be a class? why cant the parent just call the function loadTests() and that returns a promise, then u can do a .then
Обсуждают сегодня