I have a function that does 2 things. I want to wait for the first line and then execute the second line. The first line is a simple assignment. How can I do this using async-await without making the first assignment a function. The following code gives me an error in line 2.
async eg(){
await a = b;
c.focus();
}
async/await.v-ifthat comes true only when a is equal to b. when that happens a pop up shows that contains c and then I want the focus to move to the c. Without the async-await it doesn't workawaitfor an assignment. Can you post an extract of your template? It might be related to some "Component does not update when I want to" question. Stuff likethis.$nextTick();can help.