Skip to content

Commit 9352749

Browse files
committed
번역: tutorial/step-11
1 parent 28c6e86 commit 9352749

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export default {
2-
// register component
2+
// 자식 컴포넌트를 등록
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export default {
2-
// register child component
2+
// 자식 컴포넌트를 등록
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!-- render child component -->
1+
<!-- 자식 컴포넌트 렌더링 -->
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<h2>A Child Component!</h2>
1+
<h2>자식 컴포넌트입니다!</h2>

ko-KR/src/tutorial/src/step-11/description.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
# Components
1+
# 컴포넌트
22

3-
So far, we've only been working with a single component. Real Vue applications are typically created with nested components.
3+
지금까지 우리는 단일 컴포넌트로만 작업했습니다.
4+
일반적으로 실제 Vue 앱은 중첩된 컴포넌트를 사용하여 생성됩니다.
45

5-
A parent component can render another component in its template as a child component. To use a child component, we need to first import it:
6+
상위 컴포넌트는 다른 컴포넌트를 템플릿의 하위 컴포넌트로 렌더링할 수 있습니다.
7+
자식 컴포넌트를 사용하려면 먼저 가져와야 합니다:
68

79
<div class="composition-api">
810
<div class="sfc">
@@ -27,14 +29,15 @@ export default {
2729
}
2830
```
2931

30-
We also need to register the component using the `components` option. Here we are using the object property shorthand to register the `ChildComp` component under the `ChildComp` key.
32+
그런 다음 `components` 옵션을 사용하여 컴포넌트를 등록해야 합니다.
33+
여기서는 [객체 축약형 속성명](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer#property_definitions) 문법을 사용하여 `ChildComp`로 컴포넌트를 등록했습니다.
3134

3235
</div>
3336
</div>
3437

3538
<div class="sfc">
3639

37-
Then, we can use the component in the template as:
40+
그런 다음 템플릿에서 컴포넌트를 다음과 같이 사용할 수 있습니다:
3841

3942
```vue-html
4043
<ChildComp />
@@ -54,15 +57,16 @@ createApp({
5457
})
5558
```
5659

57-
We also need to register the component using the `components` option. Here we are using the object property shorthand to register the `ChildComp` component under the `ChildComp` key.
60+
그런 다음 `components` 옵션을 사용하여 컴포넌트를 등록해야 합니다.
61+
여기서는 [객체 축약형 속성명](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer#property_definitions) 문법을 사용하여 `ChildComp`로 컴포넌트를 등록했습니다.
5862

59-
Because we are writing the template in the DOM, it will be subject to browser's parsing rules, which is case-insensitive for tag names. Therefore, we need to use the kebab-cased name to reference the child component:
63+
DOM에 템플릿을 작성하므로 태그의 대소문자를 구분하지 않는 브라우저 문법 분석 규칙이 적용됩니다.
64+
따라서 하위 컴포넌트를 참조하려면 케밥 케이스(kebab-cased) 이름을 사용해야 합니다:
6065

6166
```vue-html
6267
<child-comp></child-comp>
6368
```
6469

6570
</div>
6671

67-
68-
Now try it yourself - import the child component and render it in the template.
72+
이제 직접 템플릿에서 하위 컴포넌트를 가져와 렌더링해봅시다.

0 commit comments

Comments
 (0)