Skip to content

Commit b40f922

Browse files
authored
Merge pull request #282 from niceplugin/guide/essentials/template-syntax
Official sync translation: /guide/essentials/template-syntax.md
2 parents 3feb6b8 + 894e37a commit b40f922

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

ko-KR/src/guide/essentials/template-syntax.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,9 @@ Vue 템플릿에서 JavaScript 표현식은 다음과 같은 위치에 사용할
153153

154154
### 하나의 표현식만 가능 {#expressions-only}
155155

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` 뒤에 사용할 수 있는 코드여야 하는 것입니다.
161159

162160
따라서 다음 코드들은 **작동하지 않습니다**:
163161

@@ -230,8 +228,8 @@ Vue는 위에서 소개한 `v-html`과 `v-bind`를 포함하여 [빌트인 디
230228
<a @click="doSomething"> ... </a>
231229
```
232230

233-
`v-on``@` 문자열을 단축형으로 가집니다.
234-
여기서 `click`인자로서 수신할 이벤트 이름입니다.
231+
여기서 `click`의 인자는 수신할 이벤트 이름입니다.
232+
`v-on`단축형으로 `@`를 대신 사용할 수 있습니다.
235233
이벤트 처리에 대해서는 나중에 더 자세히 설명하겠습니다.
236234

237235
### 동적인 인자 {#dynamic-arguments}
@@ -289,8 +287,8 @@ DOM 내 템플릿(HTML 파일에 직접 작성된 템플릿)을 사용할 때,
289287
```
290288

291289
위의 내용은 DOM 내 템플릿에서 `:[someattr]`로 변환됩니다.
292-
컴포넌트에 `someAttr` 속성을 정의했다면, `someattr` 속성은 없으므로 코드가 작동하지 않습니다. 싱글파일 컴포넌트안에 선언된 템플릿은 이 제약에 해당되지 않습니다.
293-
290+
컴포넌트에 `someattr` 대신 `someAttr` 속성을 사용했다면 코드가 작동하지 않습니다.
291+
싱글 파일 컴포넌트 내의 템플릿은 이 제약 조건에 해당하지 않습니다.
294292

295293
### 수식어 {#modifiers}
296294

0 commit comments

Comments
 (0)