인프런 백엔드강의에서 프론트 맛보기 1~2시간 깔짝 하는 강의보면
<template>
<Header/>
<content/>
</template>
app.vue
template>
<el-main class="content">
<RouterView/>
</el-main>
</template>
<el-main class="content">
<RouterView/>
</el-main>
</template>
content.vue
컴포넌트에 header.vue content.vue 파일 만들고 app.vue에 이렇게하고 쓰던데
구글링해서 컴포넌트 쓰는거보면 막 main.ts에 등록하고 이렇게 쓰던데 최신버전은 상관이없는거임??
내가 이제 postHeader.vue라는 파일하고 postList.vue라는 파일을 컴포넌트 파일에 넣고 그냥
<postHeader/>
<postList/>
이렇게 써도 되는건지 궁금함.....
댓글 0