vue form example
Example 1: submit form in vue
//HTML
//JS
vm = new Vue({
el : "#vueRoot",
methods : {
submit : function(){
this.$refs.form.submit()
}
}
});
Example 2: vue form
Message is: {{ message }}
//HTML
//JS
vm = new Vue({
el : "#vueRoot",
methods : {
submit : function(){
this.$refs.form.submit()
}
}
});
Message is: {{ message }}