My current setup includes:
Vue 2.5.16 Veux Vue router
I have created a simple router view that searches for a child component within a parent component using the URL structure:
/folders/parent-uuid/child-uuid
Below is the code for the parent component:
<template lang="html">
<div>
<!-- Articles section -->
<div class="flex-none w-100 mv3 gray"><p>Bookmarks({{ subFolders.contentDetails.articles.length }})</p></div>
<div class="flex flex-row flex-wrap justify-start items-start">
<!-- Loop through articles -->
<div v-for="article in subFolders.contentDetails.articles" class="pointer article-item relative mb4">
<a v-on:click.stop.prevent="checkFolder(article.uuid)" :class="[{highlight:selectedItems.includes(article.uuid)}, 'absolute w-100 h-100 left-0 top-0 highlight-area z-3']" href="#">
<div class="contentImage br3 overflow-hidden">
<img class="w-100" :src=article.titleImage data-flickity-lazyload="article.titleImage">
</div>
</a>
</div>
</div>
<div class="flex-none w-100 mt3 gray folders"><div class="ph5"><p>Subfolders({{ subFolders.subFolders.length }})</p></div></div>
<div class="flex flex-row flex-wrap justify-start items-start">
<div class="folder-item folder z-0 pointer">
<div class="relative db h-100 bg-light-gray folder-new br3 mb4">
<div v-on:click="addFolder($event)" class="top aspect-ratio--object">
<p>Create new folder</p>
</div>
</div>
</div>
</template>
Third paragraph goes here.
Fourth paragraph goes here.
Router code snippet goes here.
App code snippet goes here.
If anyone can assist in why the child component is not displaying within the <router-view />
, it would be greatly appreciated.