Question: 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();
}

```

Answer: 
```
eg() {
  this.a = this.b;
  setTimeout(() => {
    this.$refs["c"].focus();
  }, 1);
}

```

[Code Sandbox](https://codesandbox.io/s/vuejs-focus-ybbqf)
As user Al-un mentioned using `this.$nextTick();` solved it beautifully.