Created
August 30, 2020 08:28
-
-
Save bachhm-dev/c0a708e6a7ea997d9f722531114d6ace to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
| <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