How to use the :key attribute for looping with v-for in VueJS

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 พ.ย. 2024

ความคิดเห็น • 7

  • @anlbolukbas6134
    @anlbolukbas6134 2 ปีที่แล้ว

    Thank you, it was really clear, hope to see new videos soon!

  • @weaponkid1121
    @weaponkid1121 2 ปีที่แล้ว

    very useful video, thanks

    • @codelistic
      @codelistic  2 ปีที่แล้ว

      You’re welcome! Thanks for watching

  • @fredpourlesintimes
    @fredpourlesintimes 2 ปีที่แล้ว +1

    I don't want all your explanations; it's too long.
    I just want to be sure that using :key is just for reseting the dom, and so avoiding unexpected behavior.

    • @codelistic
      @codelistic  2 ปีที่แล้ว

      Hi Frederic! I really understand what you mean. Looking back at this video myself, I see how I'm going on too many tangents.
      I'm also learning how to make videos in the process, and I value the kind of feedback you have just given me.
      Thank you! I will keep refining the craft ;-)

    • @vladpodd
      @vladpodd ปีที่แล้ว

      @@codelistic Don't feel bad; I think your video was the appropriate length and you explained everything in clear detail.

    • @codelistic
      @codelistic  ปีที่แล้ว

      Thanks @vladpodd! It’s always challenging to strike a good balance between being brief vs. being clear and understandable.
      The reasoning behind using ‘key’ attribute was at the time something I couldn’t wrap my head around on how it works. I could imagine how someone who already understands it finds the video boring. Or someone who’s not interested in digging deeper, etc.
      But I’m really glad that my video still finds its’ target audience, so thank you very much for your encouragement! Means a lot!