Skip to content

Commit f003aee

Browse files
committed
예제 번역: /examples/handling-input
1 parent 1cb2561 commit f003aee

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

ko-KR/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ export const sidebar = {
428428
link: '/examples/#hello-world'
429429
},
430430
{
431-
text: '사용자 입력 처리하기',
431+
text: '사용자 입력 핸들링',
432432
link: '/examples/#handling-input'
433433
},
434434
{

ko-KR/src/examples/src/handling-input/App/composition.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@ import { ref } from 'vue'
22

33
export default {
44
setup() {
5-
const message = ref('Hello World!')
5+
const message = ref('안녕 Vue!')
66

77
function reverseMessage() {
8-
// Access/mutate the value of a ref via
9-
// its .value property.
8+
// .value 속성을 통해 ref 값에 접근/변경합니다.
109
message.value = message.value.split('').reverse().join('')
1110
}
1211

1312
function notify() {
14-
alert('navigation was prevented.')
13+
alert('탐색이 금지되었습니다.')
1514
}
1615

1716
return {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
export default {
22
data() {
33
return {
4-
message: 'Hello World!'
4+
message: '안녕 Vue!'
55
}
66
},
77
methods: {
88
reverseMessage() {
99
this.message = this.message.split('').reverse().join('')
1010
},
1111
notify() {
12-
alert('navigation was prevented.')
12+
alert('탐색이 금지되었습니다.')
1313
}
1414
}
1515
}
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
<!--
2-
Note we don't need .value inside templates because
3-
refs are automatically "unwrapped" in templates.
2+
컴포지션 API 스타일의 경우,
3+
ref는 템플릿에서 자동으로 "언래핑"되므로
4+
템플릿 내에서 .value가 필요하지 않습니다.
45
-->
56
<h1>{{ message }}</h1>
67

78
<!--
8-
Bind to a method/function.
9-
The @click syntax is short for v-on:click.
9+
메서드/함수에 바인딩합니다.
10+
@click 문법은 v-on:click의 줄임말입니다.
1011
-->
11-
<button @click="reverseMessage">Reverse Message</button>
12+
<button @click="reverseMessage">메시지 뒤집기</button>
1213

13-
<!-- Can also be an inline expression statement -->
14-
<button @click="message += '!'">Append "!"</button>
14+
<!-- 인라인 표현식 문장이 될 수도 있습니다 -->
15+
<button @click="message += '!'">"!" 추가하기</button>
1516

1617
<!--
17-
Vue also provides modifiers for common tasks
18-
such as e.preventDefault() and e.stopPropagation()
18+
Vue는 e.preventDefault() 및 e.stopPropagation()과 같은
19+
일반적인 작업에 대한 수식어를 제공합니다.
1920
-->
2021
<a href="https://vuejs.org" @click.prevent="notify">
21-
A link with e.preventDefault()
22+
e.preventDefault()가 작동하는 링크
2223
</a>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
This example demonstrates handling user input with the v-on directive.
1+
이 예제는 v-on 디렉티브로 사용자 입력을 처리하는 방법을 보여줍니다.

0 commit comments

Comments
 (0)