Skip to content

Commit eaf300b

Browse files
authored
Merge pull request #235 from niceplugin/examples/fetching-data
예제 번역: /examples/fetching-data
2 parents 8e0eed3 + 44901f2 commit eaf300b

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

ko-KR/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ export const sidebar = {
457457
link: '/examples/#markdown'
458458
},
459459
{
460-
text: 'Fetching Data',
460+
text: '데이터 가져오기',
461461
link: '/examples/#fetching-data'
462462
},
463463
{

ko-KR/src/examples/src/fetching-data/App/composition.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ export default {
99
const commits = ref(null)
1010

1111
watchEffect(async () => {
12-
// this effect will run immediately and then
13-
// re-run whenever currentBranch.value changes
12+
// 이 이팩트는 즉시 실행되고
13+
// currentBranch.value가 변경될 때마다
14+
// 다시 실행됩니다.
1415
const url = `${API_URL}${currentBranch.value}`
1516
commits.value = await (await fetch(url)).json()
1617
})

ko-KR/src/examples/src/fetching-data/App/options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ export default {
88
}),
99

1010
created() {
11-
// fetch on init
11+
// 초기화 시 가져오기
1212
this.fetchData()
1313
},
1414

1515
watch: {
16-
// re-fetch whenever currentBranch changes
16+
// currentBranch가 변경될 때마다 데이터 다시 가져오기
1717
currentBranch: 'fetchData'
1818
},
1919

ko-KR/src/examples/src/fetching-data/App/template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h1>Latest Vue Core Commits</h1>
1+
<h1>Vue Core 최신 커밋</h1>
22
<template v-for="branch in branches">
33
<input type="radio"
44
:id="branch"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
This example fetches latest Vue.js commits data from GitHub’s API and displays them as a list.
2-
You can switch between the two branches.
1+
이 예제는 GitHub의 API에서 최신 Vue.js 커밋 데이터를 가져와 목록으로 표시합니다.
2+
두 개의 브런치 간에 전환할 수 있습니다.

0 commit comments

Comments
 (0)