Chained Calls with func().then() in Vue.js and How Promise.resolve Works
In Vue.js development you'll encounter asynchronous-call scenarios, but sometimes you need to wait for the async to finish before the next step, which is where func().then() comes in. To use this pattern you need Promise. I'm writing this article because when I searched I found some people wrote it wrong, somewhat misleading others, so I'll write my own version.







