title: How to use async/await inside promise - Vue
body: <p>Here's my method:</p>
  
  <pre><code>async sendEmail() {
    this.isActive = true
    this.$validator.validate().then(result =&gt; {
      if (result) {
        await axios.post('url', data)
        this.isActive = false
      }
    })
  }
  </code></pre>
  
  <p>I'm showing the loader when <code>isActive = true</code>, but using <code>await</code> inside <code>this.$validator</code> throw me an error about word <code>await</code> is reserved. For validation i use <a href="https://baianat.github.io/vee-validate/" rel="nofollow noreferrer">VeeValidate</a></p>
  
  <p>How can i use await inside <code>$validator</code> promise?</p>