Skip to content

Commit 555ae06

Browse files
committed
번역: tutorial/step-3
1 parent f0c4bb7 commit 555ae06

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<h1>Make me red</h1> <!-- add dynamic class binding here -->
1+
<h1>나를 빨갛게 만들어 보세요</h1> <!-- 여기에 동적 클래스 바인딩 추가 -->
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<h1 :class="titleClass">Make me red</h1>
1+
<h1 :class="titleClass">나를 빨갛게 만들어 보세요</h1>
Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1-
# Attribute Bindings
1+
# 속성 바인딩
22

3-
in Vue, mustaches are only used for text interpolation. To bind an attribute to a dynamic value, we use the `v-bind` directive:
3+
Vue에서 이중 중괄호는 텍스트 삽입에만 사용됩니다.
4+
속성을 동적 값에 바인딩하려면 `v-bind` 디렉티브를 사용합니다:
45

56
```vue-html
67
<div v-bind:id="dynamicId"></div>
78
```
89

9-
A **directive** is a special attribute that starts with the `v-` prefix. They are part of Vue's template syntax. Similar to text interpolations, directive values are JavaScript expressions that have access to the component's state. The full details of `v-bind` and directive syntax are discussed in <a target="_blank" href="/guide/essentials/template-syntax.html">Guide - Template Syntax</a>.
10+
**디렉티브**`v-` 접두사로 시작하는 특수한 속성으로 Vue 템플릿 문법의 일부입니다.
11+
텍스트 삽입과 유사하게 디렉티브 값은 컴포넌트의 상태에 접근할 수 있는 JavaScript 표현식입니다.
12+
`v-bind` 및 디렉티브 문법에 대한 자세한 내용은 <a target="_blank" href="/guide/essentials/template-syntax.html">가이드 - 템플릿 문법</a>에서 설명합니다.
1013

11-
The part after the colon (`:id`) is the "argument" of the directive. Here, the element's `id` attribute will be synced with the `dynamicId` property from the component's state.
14+
콜론(`:`) 뒤의 부분(`id`)은 디렉티브의 "인수"입니다.
15+
여기서 엘리먼트의 `id` 속성은 컴포넌트 상태의 `dynamicId` 속성과 동기화됩니다.
1216

13-
Because `v-bind` is used so frequently, it has a dedicated shorthand syntax:
17+
`v-bind`는 너무 자주 사용되기 때문에 전용 단축 문법이 있습니다:
1418

1519
```vue-html
1620
<div :id="dynamicId"></div>
1721
```
1822

19-
Now, try to add a dynamic `class` binding to the `<h1>`, using the `titleClass` <span class="options-api">data property</span><span class="composition-api">ref</span> as its value. If it's bound correctly, the text should turn red.
23+
이제 <span class="options-api">`data` 속성</span><span class="composition-api">`ref`</span>의 `titleClass`을 값으로 사용하여,
24+
`<h1>``class`에 동적 바인딩을 추가해 보십시오.
25+
올바르게 바인딩된 경우, 텍스트가 빨간색으로 변해야 합니다.

0 commit comments

Comments
 (0)