Skip to content

Instantly share code, notes, and snippets.

@SaraVieira
Created March 30, 2018 18:44
Show Gist options
  • Save SaraVieira/917bc3d27bc5fb4066ae42e2606a44f3 to your computer and use it in GitHub Desktop.
Save SaraVieira/917bc3d27bc5fb4066ae42e2606a44f3 to your computer and use it in GitHub Desktop.
<template>
<form v-on:submit.prevent="onSubmit">
<div class="measure">
<label htmlFor="name">
Name
</label>
<input
id="name"
type="text"
required
v-model="person"
/>
</div>
</form>
</template>
<script>
import { ADD_NAME } from "../queries";
export default {
name: "Form",
data() {
return {
person: ""
};
}
};
</script>
<style>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment