Answers for "submit form and page not reload in vuejs"

1

vue submit reloads page

<form @submit.prevent="onSubmit"></form>

<script>
export default {
  methods: {
    onSubmit () {
      // Do something...
    }
  }
};
</script>
Posted by: Guest on July-14-2020

Code answers related to "submit form and page not reload in vuejs"

Browse Popular Code Answers by Language