<template>
<header>
<div class="headerMenuWrap">
<ul class="headerMenuUl">
<li>메뉴1</li>
<li>메뉴2</li>
<li>메뉴3</li>
</ul>
</div>
</header>
</template>
<script>
export default{
}
</script>
<style>
</style>
<template>
<footer>
<p>https://velog.io/@comet_strike/series/%EC%82%AC%EC%9D%B4%EB%93%9C-%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8</p>
</footer>
</template>
<script>
export default{
}
</script>
<style>
</style>
<template>
<div>
<Header></Header>
<HelloWorld msg="Welcome to Your Vue.js App"/>
<Footer></Footer>
</div>
</template>
<script>
import HelloWorld from './components/HelloWorld.vue'
import Header from './components/common/Header.vue'
import Footer from './components/common/Header.vue'
export default {
name: 'App',
components: {
HelloWorld,
Header,
Footer
}
}
</script>
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
실행 시 Error 발생, Header, Footer를 Multi-Word로 지정하지 않아서 발생, AppHeader, AppFooter로 변경
App.vue 수정 코드
<template>
<div>
<AppHeader></AppHeader>
<HelloWorld msg="Welcome to Your Vue.js App"/>
<AppFooter></AppFooter>
</div>
</template>
<script>
import HelloWorld from './components/HelloWorld.vue'
import AppHeader from './common/AppHeader.vue'
import AppFooter from './common/AppFooter.vue'
export default {
name: 'App',
components: {
HelloWorld,
AppHeader,
AppFooter
}
}
</script>
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
https://onethejay.tistory.com/65
https://blog.naver.com/PostView.naver?blogId=masichyun77&logNo=222440885802
잘 읽었습니다. 좋은 정보 감사드립니다.