Skip to content

Instantly share code, notes, and snippets.

Created September 5, 2016 14:49
Show Gist options
  • Save anonymous/b0e74f404b38d4b7d759579e14b5c174 to your computer and use it in GitHub Desktop.
Save anonymous/b0e74f404b38d4b7d759579e14b5c174 to your computer and use it in GitHub Desktop.
<script>
import Form from './Form'
import { update } from '../services/Users'
export default {
extends: Form,
methods: {
performSave() {
const hideLoad = () => this.$loader.hide()
this.$loader.show()
update(this.user.id, this.user)
.then(...)
.then(hideLoad)
.cath(hideLoad)
},
},
}
</script>
<template>...</template>
<style>...</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment