title: Notify parent component as soon as event occurs in child event?
body: <p>I need that when a user clicks a button on the child component the parent component receives <code>cart.lenght</code> to be assigned the<code> count</code> property of an element.</p>
  <h1>Child component code</h1>
  <pre><code>&lt;q-btn flat round color=&quot;faded&quot; icon=&quot;fas fa-shopping-cart&quot; @click=&quot;cart(item.id)&quot;/&gt;
  
  cart: function (Id) {
        let cart = []
        cart.push(Id)
        this.$emit('totalItensCart')
        this.$q.localStorage.set('cart', cart)
  }
  </code></pre>
  <p><em><strong>How do I display the <code>cart.length</code> value in the<code> count</code> property that is in the parent component?</strong></em></p>
  <h1>Parent component code</h1>
  <pre><code> &lt;q-route-tab
          count=&quot;5&quot;
          icon=&quot;fas fa-cart-plus&quot;
          to=&quot;/cart&quot;
          exact
   slot=&quot;title&quot;/&gt;
  </code></pre>