title: Try catch on v if
body: <p>I have a <code>v-if</code> that shows an error message in HTML</p>
  <pre><code>    &lt;div id=&quot;error&quot; v-if=&quot;showError&quot;&gt;Error User or Password&lt;/div&gt;
  
    data() {
      return {
        showError: false,
  };}
  </code></pre>
  <p>if I set in data <code>showError: true</code> it appears.</p>
  <p>But when I call it in inside my catch:</p>
  <pre><code>  catch (error) {
      alert('Usuário ou senha inválidos')
  
    }
  </code></pre>
  <p>the <code>alert</code> works fine but if I send</p>
  <pre><code>showError = true
  </code></pre>
  <p>or</p>
  <pre><code>showError: true;
  </code></pre>
  <p>do not appears the error message in HTML(<code>v-if</code>)</p>
  <p>how do i do that?</p>