Vuejs nested components

Today, We want to share with you Vuejs nested components.In this post we will show you VueJS access nested component data value, hear for Vuejs nested components with single file components we will give you demo and example for implement.In this post, we will learn about Navigate Nested Child Routes In A Vue.js Web Application with an example.

Vuejs nested components

There are the Following The simple About Vuejs nested components Full Information With Example and source code.

As I will cover this Post with live Working example to develop Vuejs nested components with inline-template, so the vue pass data to component for this example is following below.

Also Read This πŸ‘‰   VueJS nested child, template, inner template, components

step 1: vuejs Script Code

source Code from main.js

var shopComponent = Vue.extend({
    template: '#shop-component',

    data: function() {
        return {
            products: []

    created: function() {
            .then(function(products) {
                this.products =;

var shopComponentChild = Vue.extend({
    template: '#shop-component-sub_cat',

    props: ['item'],

    data: function() {
        return {
            item: {}

Vue.component('shop-component', shopComponent);
Vue.component('shop-component-sub_cat', shopComponentChild);

new Vue({
    el: 'body',

Free Live Chat for Any Issue

Step 2: HTML Part

source Code from index.html


<template id="shop-component">
            <tr is="shop-component-sub_cat" v-for="item in products" :item="item"></tr>

<template id="shop-component-sub_cat">
        <td>{{ }}</td>
        <td>{{ item.url }}</td>

Web Programming Tutorials Example with Demo

Read :

Also Read This πŸ‘‰   vue js Accessing Complex Nested JSON objects


You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Vuejs nested components.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Rate this post