title: How to open the dialog from another component?
body: <p>I have a dialog component that looks as follow:</p>
  <pre><code>&lt;template&gt;
    &lt;q-dialog v-model=&quot;confirm&quot; persistent&gt;
      &lt;q-card&gt;
        &lt;q-card-section class=&quot;row items-center&quot;&gt;
          &lt;span class=&quot;q-ml-sm&quot;&gt;You must register&lt;/span&gt;
        &lt;/q-card-section&gt;
        &lt;q-card-actions align=&quot;right&quot;&gt;
          &lt;q-btn flat label=&quot;Save&quot; color=&quot;primary&quot; v-close-popup/&gt;
        &lt;/q-card-actions&gt;
      &lt;/q-card&gt;
    &lt;/q-dialog&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
    export default {
      name: 'UserInfo',
      data() {
        return {
          confirm: false,
        }
      },
  
      created: function () {
  
      },
      methods: {
        show_dialog() {
          this.confirm = true;
        }
  
      }
    }
  &lt;/script&gt;
  </code></pre>
  <p>And another component that import the component above:</p>
  <pre><code>&lt;template&gt;
    &lt;div class='q-pa-md' style='max-width: 300px'&gt;
      &lt;UserInfo&gt;&lt;/UserInfo&gt;
    &lt;/div&gt;
  &lt;/template&gt;
  
  
  &lt;script&gt;
    import UserInfo from &quot;pages/UserInfo&quot;;
  
    export default {
      name: 'PageIndex',
      components: {UserInfo},
      data() {
        return {
  
        }
      },
      mounted() {
  
      },
      created: function () {
        const config = {
          headers: {
            'Authorization': `Bearer ${this.$kc.token}`,
            'Content-Type': 'application/json',
          }
        };
  
      console.log(this.$kc);
  
  
        this.$axios.get(`http://localhost:9090/user/${this.$kc.subject}`)
          .then((res) =&gt; {
            console.log(res)
          })
          .catch(_ =&gt; {
            //Here the dialog should open
          })
  
      },
      methods: {
  
      }
    }
  &lt;/script&gt;
  </code></pre>
  <p>The <code>Dialog</code> should get called in the <code>catch</code> block.</p>
  <p>How to trigger the open event in the <code>catch</code> block?</p>