Created
March 31, 2018 20:26
-
-
Save SaraVieira/1cc9a24e2dfa9785917cc78e7f4bdb71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
import { GET_NAMES, ADD_NAME } from "../queries"; | |
export default { | |
name: "Form", | |
data() { | |
return { | |
person: "" | |
}; | |
}, | |
methods: { | |
onSubmit() { | |
const name = this.person; | |
this.person = ""; | |
} | |
} | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment