summery
I've tried to create some sample Vue Nuxt SPA.
Within a component, I added other two components.
It results that nothing displayed on the browser.
I want to know how to fix it and display input function correctly.
what I've tried
here is directory structure.
project
├ pages
│ └ index.vue
├ components
│ ├ home
│ │ └ index.vue
│ ├ input
│ │ └ index.vue
│ └ list
│ └ index.vue
.
.
In components/home/index.vue
I added two components: Input and List.
<template>
<div>
<Input/>
<List/>
</div>
</template>
<script lang="ts">
import { Component, Vue } from 'nuxt-property-decorator';
import Input from '~/components/input/index.vue';
import List from '~/components/list/index.vue';
@Component({
layout: 'default',
components: {
Input,
List,
},
})
export default class Home extends Vue {}
</script>
As the result, Nothing is displayed on the browser.
show some codes
Here is the Github repository, please check. https://github.com/jpskgc/vue-nuxt-spa-sample/tree/multiple-components