Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 이용현황분석
- 광명시버스분석
- R 그래프
- await
- 백준
- react #회원가입 #비밀번호비교
- useState
- 그래픽
- 값삭제
- asynchronization
- React
- 데이터분석
- 배열추가
- 이스케이프시퀀스
- 버스분석
- R데이터형태
- vetor
- 10172
- 배열삭제
- 백준 10172
- 그대로 출력하기
- DataFrame
- 탈출문자
- barplot in r
- plot in r
- getline
- barplot
- setstate
- 값추가
- 백준 11718
Archives
- Today
- Total
devlog_zz
vue study - nesting component 본문
728x90
컴포넌트 템플릿안에는 하나의 root element만 존재해야한다
-> <div></div>태그로 전체 묶기
<style scoped> : 스타일 태그가 해당 컴포넌트에만 적용된다.
App.vue
<template>
<div>
<app-header></app-header>
<app-ninjas></app-ninjas>
<app-footer></app-footer>
</div>
</template>
<script>
import Header from './components/Header.vue'
import Footer from './components/Footer.vue'
import Ninjas from './components/Ninjas.vue'
export default {
components:{
'app-header':Header,
'app-footer':Footer,
'app-ninjas':Ninjas
}
}
</script>
<style>
</style>
728x90
'Front End > Vue' 카테고리의 다른 글
vue study - primitive type vs reference type (0) | 2020.03.26 |
---|---|
vue study - props (0) | 2020.03.25 |
vue study - nested component (0) | 2020.03.25 |
vue Study - Refs (0) | 2020.03.25 |
vue Study - component (0) | 2020.03.25 |
Comments