Skip to content

Instantly share code, notes, and snippets.

@bachhm-dev
Created August 30, 2020 08:28
Show Gist options
  • Select an option

  • Save bachhm-dev/c0a708e6a7ea997d9f722531114d6ace to your computer and use it in GitHub Desktop.

Select an option

Save bachhm-dev/c0a708e6a7ea997d9f722531114d6ace to your computer and use it in GitHub Desktop.
<template>
<div id="app">
<InviteForm v-model:name="inviteName" v-model:email="inviteEmail" />
<div>
<div>{{ inviteName }}</div>
<div>{{ inviteEmail }}</div>
</div>
</div>
</template>
<script>
import InviteForm from "./components/InviteForm.vue";
import { ref } from "vue";
export default {
name: "App",
components: {
InviteForm,
},
setup() {
const inviteName = ref("name");
const inviteEmail = ref("invite");
return {
inviteName,
inviteEmail,
};
},
};
</script>
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment