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 | 31 |
Tags
- 백준 11718
- R 그래프
- 배열추가
- barplot
- 이스케이프시퀀스
- await
- 그래픽
- getline
- 값삭제
- asynchronization
- 탈출문자
- useState
- 데이터분석
- vetor
- 백준 10172
- React
- 백준
- react #회원가입 #비밀번호비교
- 그대로 출력하기
- setstate
- 10172
- barplot in r
- 광명시버스분석
- 배열삭제
- DataFrame
- R데이터형태
- 이용현황분석
- 버스분석
- 값추가
- plot in r
Archives
- Today
- Total
devlog_zz
vue study - nested component 본문
728x90
nested component
global하게 등록하면 어느 컴포넌트에서나 사용가능하도록 중첩시킬 수 있다.
local이면 오직 그 컴포넌트에서만 등록가능하다.
global하게 등록
main.js
import Ninjas from './Ninjas.vue' Vue.component('ninjas',Ninjas) |
App.vue에서 ninjas component 를 불러옴
<template>
<div>
<h3>{{msg}}</h3>
<ninjas></ninjas>
</div>
</template>
local하게 등록하려면
App.vue에서
import Ninjas from './Ninjas.vue'
export default {
components:{
'ninjas':Ninjas
},
이와 같이 등록해야함
728x90
'Front End > Vue' 카테고리의 다른 글
vue study - props (0) | 2020.03.25 |
---|---|
vue study - nesting component (0) | 2020.03.25 |
vue Study - Refs (0) | 2020.03.25 |
vue Study - component (0) | 2020.03.25 |
vueStudy v-for (0) | 2020.03.25 |
Comments