Skip to content

Instantly share code, notes, and snippets.

@yehonatan56
Created January 15, 2025 13:08
Show Gist options
  • Select an option

  • Save yehonatan56/8f26472c2b1c39be855df472bd94754b to your computer and use it in GitHub Desktop.

Select an option

Save yehonatan56/8f26472c2b1c39be855df472bd94754b to your computer and use it in GitHub Desktop.
<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