Now we are going to create the user registration form and make the final page. In this step, we will join the outputs of all the other steps into a single page:
- Open the App.vue file in the src folder. In the <script> section of the single file component, import the main-layout component and the hero-section component:
import Mainlayout from './layouts/main.vue';
import HeroSection from './components/heroSection.vue';
- Then, we will export a default JavaScript object with the name property defined as App, then define the components property with the imported components. Add the data property to the JavaScript object, with the name, username, password, email, phone, cellphone, address, zipcode, and country properties:
export default {
name: 'App',
components: {
HeroSection,
Mainlayout,
},
data: () => ({
name: '',
username: '',
password: '',
email:...