title: Focus input of freshly added item
body: <p>So I have a list of items and list of inputs linked to each item via v-for and v-model. </p>
  
  <p>I click a button and add new item to that list. I want to focus input which is linked to newly added item. </p>
  
  <p>Can't figure out how to achieve this goal.</p>
  
  <pre><code>&lt;div id="app"&gt;
    &lt;div v-for="item in sortedItems"&gt;
      &lt;input v-model="item"&gt;
    &lt;/div&gt;
    &lt;button @click="addItem"&gt;
      add
    &lt;/button&gt;
  &lt;/div&gt;
  
  
  new Vue({
    el: '#app',
    data: {
      items: []
    },
    methods: {
      addItem: function() {
        this.items.push(Math.random());
      }
    },
    computed: {
      sortedItems: function() {
        return this.items.sort(function(i1, i2) {
          return i1 - i2;
        })
      }
    }
  })
  </code></pre>
  
  <p>Here's fiddle with sorted list
  <a href="https://jsfiddle.net/sfL91r95/1/" rel="nofollow">https://jsfiddle.net/sfL91r95/1/</a></p>
  
  <p>Thanks</p>