Skip to content

Instantly share code, notes, and snippets.

@SaraVieira
Created March 31, 2018 20:26
Show Gist options
  • Save SaraVieira/1cc9a24e2dfa9785917cc78e7f4bdb71 to your computer and use it in GitHub Desktop.
Save SaraVieira/1cc9a24e2dfa9785917cc78e7f4bdb71 to your computer and use it in GitHub Desktop.
<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