Created
September 7, 2018 21:11
-
-
Save kuroski/9f46e359e65bb8a4d49f2c63dc67de24 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> | |
export default { | |
name: 'UserSearchForm', | |
data() { | |
return { | |
username: '' | |
} | |
} | |
} | |
</script> | |
<template> | |
<form @submit.prevent="$emit('submitted', username)"> | |
<input type="text" v-model="username" /> | |
<button type="submit">Enviar</button> | |
</form> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment