title: Vue form not submitting
body: <p>I'm trying to submit a form with data in order to get an API key that I need to use to fetch the API data. I made a form in Vue.js, however, it's not submitting my form. I'm a beginner when it comes to Vue so i have no idea what I'm doing wrong. I would really appreciate some help.</p>
  
  <p>My App.vue: </p>
  
  <pre><code> &lt;template&gt;
    &lt;div id="app"&gt;
     &lt;Login @loginformdata="submitlogin"/&gt;
    &lt;/div&gt;
   &lt;/template&gt;
  
   &lt;script&gt;
   import Login from './components/Login.vue';
   import Bootstrap from 'bootstrap';
   import axios from 'axios';
  
  
   export default {
     name: 'app',
     data()
     {
       return {
         errors: [],
         logins: []
     }
   },
   components: {
     Login
   },
   methods: {
     submitlogin(credentials){
     const {personeelsnummer, wachtwoord } = credentials;
  
     axios.post('http://localhost/api/apikey/', {
       personeelsnummer,
       wachtwoord
     })
     .then(res =&gt; this.logins)
     .catch(e =&gt; {
       this.errors.push(e)
     })
  }
  }
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>My Login.vue: </p>
  
  <pre><code> &lt;template&gt;
  &lt;div @submit="logintest"&gt;
      &lt;h1&gt;Login&lt;/h1&gt;
      &lt;input v-model="personeelsnummer" type="text" name="personeelsnummer" placeholder="personeelsnummer"&gt;&amp;nbsp;
      &lt;input v-model="wachtwoord" type="password" name="wachtwoord" placeholder="wachtwoord"&gt;
      &lt;input type="submit" value="Submit"&gt;
  &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  export default {
  name: "Login",
  data() {
      return {
          personeelsnummer: '',
          wachtwoord: ''
      }
  },
  methods: {
      logintest(p, w){
          alert('test');
          const login = {
              personeelsnummer: this.personeelsnummer,
              wachtwoord: this.wachtwoord
          }
          //Send to parent
          this.$emit('loginformdata', login);
      }
  }
   }
    &lt;/script&gt;
  </code></pre>