title: Vue js form submission method
body: <p>I'm relatively new to Vuejs &amp; am trying to get this form working but it keeps showing me these errors when i submit. Can anyone guide me on this?  </p>
  
  <pre><code>&lt;template&gt;
    &lt;form @submit.prevent="handleSubmit"&gt;
      &lt;input class="input" type="text" v-model="user.name"&gt;
      &lt;input class="input" type="text" v-model="user.email"&gt;
      &lt;input class="input" type="text" v-model="user.phone"&gt;
      &lt;button class="button is-primary" type="submit"&gt;Submit&lt;/button&gt;
    &lt;/form&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  export default {
    data() {
      return {
        user: {
          name: '',
          email: '',
          phone: ''
        },
        test: "BEFORE SUBMIT"
      };
    },
    method: {
      handleSubmit() {
        let user = new user({
          name: this.user.name,
          email: this.user.email,
          phone: this.user.phone,
        });
  
        this.test = "AFTER SUBMIT";
      }
    }
  };
  &lt;/script&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/swgrc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/swgrc.png" alt="enter image description here"></a></p>