ํ์ ์ปดํฌ๋ํธ import ํ ์ฌ์ฉ
App.vue
<template>
<div>
app
<!-- ํ์ ์ปดํฌ๋ํธ ์ฐ๊ฒฐ -->
<app-header></app-header>
</div>
</template>
<script>
//AppHeader๋ผ๋ ์ปดํฌ๋ํธ import
import AppHeader from './components/AppHeader.vue';
export default {
components: {
//๋ถ๋ฌ์จ AppHeader๋ผ๋ ์ปดํฌ๋ํธ๋ฅผ 'app-header'๋ผ๋ ์ด๋ฆ์ผ๋ก ์ง์
'app-header': AppHeader
},
}
</script>
<style>
</style>
AppHeader.vue
<template>
<header>
<h1>Welcome to My App</h1>
<!-- ๊ธฐํ ํค๋ ์ปจํ
์ธ ๋ค -->
</header>
</template>
<script>
export default {
// ์ปดํฌ๋ํธ ๋ก์ง ๋ฐ ์ต์
๋ค
};
</script>
<style>
/* ์คํ์ผ๋ง ์ต์
๋ค */
</style>
reference: https://www.inflearn.com/course/lecture?courseSlug=age-of-vuejs&unitId=21464&tab=curriculum
ํ์ต ํ์ด์ง
www.inflearn.com
2023.07.29 - [IT/development] - [Vue.js] ์ฑ๊ธ ํ์ผ ์ปดํฌ๋ํธ์์ props ์์ฑ ์ด์ฉ
[Vue.js] ์ฑ๊ธ ํ์ผ ์ปดํฌ๋ํธ์์ props ์์ฑ ์ด์ฉ
App.vue app AppHeader .vue {{ propsdata }}
yaga.tistory.com
2023.07.29 - [IT/development] - [Vue.js] ์ฑ๊ธ ํ์ผ ์ปดํฌ๋ํธ์์ event emit ์์ฑ ์ด์ฉ
[Vue.js] ์ฑ๊ธ ํ์ผ ์ปดํฌ๋ํธ์์ event emit ์์ฑ ์ด์ฉ
App.vue app AppHeader.vue {{ propsdata }} send
yaga.tistory.com
[Vue.js] ์ฑ๊ธ ํ์ผ ์ปดํฌ๋ํธ์์ axios๋ฅผ ์ด์ฉํ ๋ฐ์ดํฐ ์ ์ก
#ajax ํต์ ์ํ lib ์ค์น npm i axios App.vue id: password: login reference: https://www.inflearn.com/course/lecture?courseSlug=age-of-vuejs&unitId=21471&tab=curriculum ํ์ต ํ์ด์ง www.inflearn.com
yaga.tistory.com
'IT > development' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Vue.js] ์ฑ๊ธ ํ์ผ ์ปดํฌ๋ํธ์์ event emit ์์ฑ ์ด์ฉ (0) | 2023.07.29 |
---|---|
[Vue.js] ์ฑ๊ธ ํ์ผ ์ปดํฌ๋ํธ์์ props ์์ฑ ์ด์ฉ (0) | 2023.07.29 |
[Vue.js] Vue CLI(Command Line Interface) (0) | 2023.07.29 |
[Vue.js] ๋ทฐ ๋๋ ํฐ๋ธ(v-๋ก ์์ํ๋ ์์ฑ๋ค์ ์๋ฏธ) (0) | 2023.07.27 |
[Vue.js] ajax api ํธ์ถ(feat. axios) (0) | 2023.07.27 |
๋๊ธ