stein.log

  • ํ™ˆ
  • ํƒœ๊ทธ
  • ๋ฐฉ๋ช…๋ก

v-model 1

[Vue 2] v-model๊ณผ .sync์˜ ์ฐจ์ด์ 

vue ๊ด€๋ จ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋“ค์„ ์‚ฌ์šฉํ•˜๋‹ค๋ณด๋ฉด ๋ณ€์ˆ˜.sync ๋กœ ์ž‘์„ฑ๋œ ์ฝ”๋“œ๋“ค์„ ์ž์ฃผ ๋งŒ๋‚œ๋‹ค. ๊ทธ๋ƒฅ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋ฌธ๋ฒ•์ธ๊ฐ€ ๋ณด๋‹ค ํ–ˆ๋Š”๋ฐ vue2->vue3 Migration Guide๋ฅผ ํ™•์ธํ•˜๋Š”๋ฐ ์ฒซ ๋ฒˆ์งธ breaking change๊ฐ€ ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค. v-model usage on components has been reworked, replacing v-bind.sync v-bind.sync๋ฅผ v-model์ด ๋Œ€์‹ ํ•œ๋‹ค๊ณ  ํ•œ๋‹ค. ๋‚ด์šฉ์„ ์ฝ์–ด๋ณด์•„๋„ ์ž˜ ์ดํ•ด๊ฐ€ ๋˜์ง€ ์•Š์•„์„œ ๋‹ค์Œ stackoverflow๋ฅผ ์ฐธ๊ณ ํ•˜์˜€๋‹ค. What is the difference between v-model and .sync when used on a custom component I don't understand the difference ..

Programming/Vue.js 2021.10.18
1
๋”๋ณด๊ธฐ
ํ”„๋กœํ•„์‚ฌ์ง„

๐Ÿ’ป๐ŸŽน๐ŸŽธ๐Ÿ“ท๐ŸŽจ๐ŸŽฎ Devourer

  • ๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ (67)
    • Programming (59)
      • Vue.js (13)
      • Docker (5)
      • Web (6)
      • Django (9)
      • Flutter (4)
      • React (2)
      • UnrealEngine (9)
    • Music (3)
    • Camera (0)
    • Life (3)

Copyright ยฉ Kakao Corp. All rights reserved.

ํ‹ฐ์Šคํ† ๋ฆฌํˆด๋ฐ”