C
C
Caspanch2018-03-02 15:23:45
Vue.js
Caspanch, 2018-03-02 15:23:45

How to correctly set the structure of the components?

When templates are included in this way, only the header-black-component component is shown. But if you wrap all the components in a div, everything is displayed as it should. What's wrong?

<template>
     <header-black-component></header-black-component>
    <div class="content" id="content">
        <breadcrumbs-component :breadcrumbs="breadcrumbs"></breadcrumbs-component>
        <div class="buffer"></div>
    </div>
     <footer-component></footer-component>
</template>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-03-02
@Caspanch

There must be only one root element. And now you have three.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question