Skip to content

Instantly share code, notes, and snippets.

@amcsi
Created July 8, 2018 13:04
Show Gist options
  • Save amcsi/67ef1a690b55be156d3930dffcfda3db to your computer and use it in GitHub Desktop.
Save amcsi/67ef1a690b55be156d3930dffcfda3db to your computer and use it in GitHub Desktop.
Vue Form Handling example
return {
methods: {
async submitForm() {
try {
await axios.post('...', this.data);
} catch (e) {
const handled = tryHandleFormErrors(e);
if (!handled) {
handleUnexpectedErrors(e);
}
}
},
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment