title: How do I update parent div of component in vue.js
body: <p>I was just wondering if this is even possible, lets assume I have this code here:</p>
  
  <pre><code>&lt;div v-for="tile in container" v-bind:class="proper-class"&gt;
      &lt;tile :tile='tile' @update="update-class"&gt;&lt;/tile&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to change the css class of the parent div when a variable inside of the component changes.</p>
  
  <p>I know we should use <code>$emit</code> but we have a <code>v-for</code> in here, so we're creating multiple components, the <code>$emit callback</code> will update <code>proper-class</code> BUT this will update the css class of ALL the parents and not just the parent of the component that issued the <code>update</code> event.</p>
  
  <p>What could be a solution to this?</p>
  
  <p>Thanks in advance.</p>