title: Get input value on keyup Vuejs 2
body: <p>I'm trying to get the input value on keyup using Vuejs 2 but always get an empty result like the data. Please see code below.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input type="email" @keyup="this.$data.email= $event.target.value" class="form-control" id="email" placeholder="Username (your work email)"&gt;
  &lt;button type="button" class="btn btn-primary btn-block inactive" @click="submit"&gt;Log in&lt;/button&gt;
  </code></pre>
  
  <p>Script:</p>
  
  <pre><code>data () {
    return {
      email: '',
    }
  },
  methods: {
    submit () {
      alert(this.$data.email)
    }
  }
  </code></pre>