vu + tab
<template>
<!--HTML-->
</template>
<script>
export default {
//Javascript - ์ธ์คํด์ค ์ต์
}
</script>
<style>
/** CSS */
</style>
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
<!-- ์ปดํฌ๋ํธ ๋ช
๋ช
๋ฒ ์ข
๋ฅ (๋ค์ด๋ฐ ์ปจ๋ฒค์
)
<hello-world></hello-world>
<HelloWorld></HelloWorld>
<HelloWorld/>
-->
</div>
</template>
<script>
//1.์ปดํฌ๋ํธ๋ฅผ importํ์ฌ ๋ค๊ณ ์์
import HelloWorld from './components/HelloWorld.vue'
export default {
name: 'App',
//2. components ์์ฑ์ ๋ฃ์ด ์ฌ์ฉํ๋ค.
components: {
HelloWorld,
//'hello-world' : HelloWorld, ๊ณผ ๋์ผํ๋ค
}
}
</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>