Created
January 15, 2025 13:08
-
-
Save yehonatan56/8f26472c2b1c39be855df472bd94754b 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 class="w-25"> | |
| <h1>Register for Business</h1> | |
| <form @submit.prevent="registerBusiness"> | |
| <div class="form-group mb-3 d-flex "> | |
| <label for="businessName" class="input-group-text">Business Name:</label> | |
| <input class="form-control" type="text" v-model="newBusiness.businessName" /> | |
| </div> | |
| <div class="form-group mb-3 d-flex "> | |
| <label for="businessEmail" class="input-group-text">Business Email:</label> | |
| <input class="form-control" type="email" v-model="newBusiness.businessEmail" /> | |
| </div> | |
| <button class="btn btn-primary">Register</button> | |
| </form> | |
| </div> | |
| </template> | |
| <script> | |
| export default { | |
| name: 'RegisterForBusiness', | |
| components: { | |
| }, | |
| data() { | |
| return { | |
| newBusiness: { | |
| businessName: '', | |
| businessEmail: '', | |
| } | |
| } | |
| }, | |
| methods: { | |
| registerBusiness() { | |
| console.log(this.newBusiness); | |
| this.newBusiness.businessName = ''; | |
| this.newBusiness.businessEmail = ''; | |
| } | |
| } | |
| } | |
| </script> | |
| <style scoped> | |
| </style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment