File tree Expand file tree Collapse file tree 4 files changed +10
-11
lines changed
ko-KR/src/examples/src/attribute-bindings Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { ref } from 'vue'
2
2
3
3
export default {
4
4
setup ( ) {
5
- const message = ref ( 'Hello World !' )
5
+ const message = ref ( '안녕 Vue !' )
6
6
const isRed = ref ( true )
7
7
const color = ref ( 'green' )
8
8
Original file line number Diff line number Diff line change 1
1
export default {
2
2
data ( ) {
3
3
return {
4
- message : 'Hello World !' ,
4
+ message : '안녕 Vue !' ,
5
5
isRed : true ,
6
6
color : 'green'
7
7
}
@@ -14,4 +14,4 @@ export default {
14
14
this . color = this . color === 'green' ? 'blue' : 'green'
15
15
}
16
16
}
17
- }
17
+ }
Original file line number Diff line number Diff line change 1
1
< p >
2
2
< span :title ="message ">
3
- Hover your mouse over me for a few seconds to see my dynamically bound title !
3
+ 동적으로 바인딩된 나의 title을 보려면 몇 초 동안 마우스를 올려놓으세요 !
4
4
</ span >
5
5
</ p >
6
6
7
7
<!--
8
- class bindings have special support for objects and arrays
9
- in addition to plain strings
8
+ 클래스 바인딩은 일반 문자열 외에도 객체 및 배열을 지원합니다.
10
9
-->
11
10
< p :class ="{ red: isRed } " @click ="toggleRed ">
12
- This should be red ... but click me to toggle it .
11
+ 이것은 빨간색이어야 합니다 ... 하지만 전환하려면 저를 클릭하세요 .
13
12
</ p >
14
13
15
- <!-- style bindings also support object and arrays -->
14
+ <!-- 스타일 바인딩은 객체 및 배열도 지원합니다. -->
16
15
< p :style ="{ color } " @click ="toggleColor ">
17
- This should be green, and should toggle between green and blue on click .
16
+ 이것은 녹색이어야 하며, 클릭 시 녹색과 파란색 사이를 전환합니다 .
18
17
</ p >
Original file line number Diff line number Diff line change 1
- Here we are reactively binding element attributes / properties to the state .
2
- The :title syntax is short for v-bind:title .
1
+ 이곳에서 엘리먼트의 속성에 상태를 반응형으로 바인딩합니다 .
2
+ :title 문법은 v-bind:title의 줄임말입니다 .
You can’t perform that action at this time.
0 commit comments