You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ko-KR/src/guide/essentials/template-syntax.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,11 +153,9 @@ Vue 템플릿에서 JavaScript 표현식은 다음과 같은 위치에 사용할
153
153
154
154
### 하나의 표현식만 가능 {#expressions-only}
155
155
156
-
Each binding can only contain **one single expression**. An expression is a piece of code that can evaluate to a value. A simple check is whether it can be used after `return`.
157
-
158
-
Therefore, the following will **NOT** work:
159
-
160
-
각 바인딩에는 **하나의 단일 표현식**만 포함될 수 있습니다.표현식은 값을 만들어내는 코드입니다. 간단하게 설명하자면 `return` 다음에 올수 있는 코드입니다.
156
+
각 바인딩에는 **하나의 단일 표현식**만 포함될 수 있습니다.
157
+
표현식은 값으로 평가할 수 있어야 하는 코드 조각입니다.
158
+
쉽게 말해 `return` 뒤에 사용할 수 있는 코드여야 하는 것입니다.
161
159
162
160
따라서 다음 코드들은 **작동하지 않습니다**:
163
161
@@ -230,8 +228,8 @@ Vue는 위에서 소개한 `v-html`과 `v-bind`를 포함하여 [빌트인 디
230
228
<a @click="doSomething"> ... </a>
231
229
```
232
230
233
-
`v-on`은 `@` 문자열을 단축형으로 가집니다.
234
-
여기서 `click`은 인자로서 수신할 이벤트 이름입니다.
231
+
여기서 `click`의 인자는 수신할 이벤트 이름입니다.
232
+
`v-on`은 단축형으로 `@`를 대신 사용할 수 있습니다.
235
233
이벤트 처리에 대해서는 나중에 더 자세히 설명하겠습니다.
236
234
237
235
### 동적인 인자 {#dynamic-arguments}
@@ -289,8 +287,8 @@ DOM 내 템플릿(HTML 파일에 직접 작성된 템플릿)을 사용할 때,
289
287
```
290
288
291
289
위의 내용은 DOM 내 템플릿에서 `:[someattr]`로 변환됩니다.
292
-
컴포넌트에 `someAttr` 속성을 정의했다면, `someattr` 속성은 없으므로 코드가 작동하지 않습니다. 싱글파일 컴포넌트안에 선언된 템플릿은 이 제약에 해당되지 않습니다.
293
-
290
+
컴포넌트에 `someattr` 대신 `someAttr` 속성을 사용했다면 코드가 작동하지 않습니다.
0 commit comments