Created
March 30, 2018 18:44
-
-
Save SaraVieira/917bc3d27bc5fb4066ae42e2606a44f3 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
<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