title: Vue JS delete objects in array by unique id?
body: <p>I'm using Vue.js to remove an object in my object array, problem is I can't find a way to delete the object by it's unique id. I'm using vue.js version 1. I also need  a way to update that same object (it has to be reactive, so my view gets updated automatically).</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
   &lt;meta charset="UTF-8"&gt;
   &lt;title&gt;Vue Js - components&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  
  &lt;!-- index.html --&gt;
  &lt;div id="app"&gt;
    &lt;div class="container-fluid"&gt;
      &lt;ul class="list-group"&gt;
        &lt;post v-for="posty in posts" :posty="posty" track-by="uuid"&gt;&lt;/post&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;template id="my-component"&gt;
   &lt;div v-if="posty.votes === '15'"&gt;
     &lt;button v-on:click="testFunc(posty.uuid)"&gt;{{posty.title}}&lt;/button&gt;
   &lt;/div&gt;
   &lt;div v-else&gt;
     &lt;button v-on:click="testFunc(posty.uuid)"&gt;No&lt;/button&gt;
   &lt;/div&gt;
  &lt;/template&gt;
  
  
  
  &lt;script src="vue-v1.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  Vue.component('post', {
    template: "#my-component",
    props: ['posty'],
    methods: {
     testFunc: function(index){
       this.$parent.parentMethod(index);
     }
    }
  });
  
  var vm = new Vue({
    el: "#app",
    data: {
      posts: [{ uuid: '88f86fe9d',
      title: "hello",
      votes: '15'
     },
     { 
      uuid: '88f8ff69d',
      title: "hello",
      votes: '15'
     },
     { 
      uuid: '88fwf869d',
      title: "hello",
      votes: '10'
     }]
    },
  
    methods: {
     parentMethod: function(index){
      Vue.delete(this.posts, index);
     }
    }
  });
  &lt;/script&gt; 
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>