7 Ways to write better V-FOR LOOPS

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ • 25

  • @brunocmesquita
    @brunocmesquita 3 роки тому +8

    Really great content

  • @QINISO-ZN
    @QINISO-ZN Рік тому

    Your videos are incredibly consice and to the point. Liked and subscribed

  • @asrorbekmannonov6838
    @asrorbekmannonov6838 2 роки тому +2

    Iterating over object with "name in in object" it's super awesome 👍. I ve never seen this before

  • @ea5591
    @ea5591 2 місяці тому

    Perfect Video

  • @jsomhorst
    @jsomhorst 2 роки тому +7

    great content. But what I miss in this is a 8th tip. Let de API do the hard work. Filtering and such is best done (when having lots of data) to a server. It can utilize caching and such.

    • @LearnVue
      @LearnVue  2 роки тому +3

      true!

    • @William_Clinton_Muguai
      @William_Clinton_Muguai 2 роки тому

      Yap... Filtering with JS makes the loading time even longer, but the objective is to provide a fast mobile-app like experience.

    • @gilbertslam
      @gilbertslam Рік тому

      I agree! Thanks for your input

  • @jntaca
    @jntaca 3 роки тому +2

    Great ! !
    Thank a lot.

  • @biplobshaha2829
    @biplobshaha2829 Рік тому

    Great ❤❤

  • @erfansadeghinezhad9780
    @erfansadeghinezhad9780 3 роки тому +1

    Nice video 😋

    • @LearnVue
      @LearnVue  3 роки тому

      glad you liked it 😌

  • @MrBowmanXD
    @MrBowmanXD 2 роки тому

    Good video keep it up

  • @LuckyStilet1
    @LuckyStilet1 3 роки тому +1

    Whole v-for just in few clicks:
    I perfer assign key to index, when I am surtan that list length not gonna change.
    For that purpose I have shortcut even in Webstorm: f + tab ==> v-for="($item$, index) in $data$" :key="index"
    (this f + tab shorthand configured to work ONLY in vue template and ONLY in the tags)
    $data$ and $item$ - just places to navigate with tab after snippet was unwrapped.

  • @devilfriend
    @devilfriend 2 роки тому

    I want to know how to do a range loop in reverse order. For example, from 10 to 1.

  • @scorpi0000
    @scorpi0000 2 роки тому

    Thanks for the content

  • @demogyani2419
    @demogyani2419 Рік тому +2

    There is one point that creator missed.
    In vue3.x V-IF has Higher precedence as compared to V-FOR

  • @christopheryeung9235
    @christopheryeung9235 3 роки тому

    Good videos

  • @augischadiegils.5109
    @augischadiegils.5109 2 роки тому

    ♥️♥️

  • @nnz13
    @nnz13 10 місяців тому

    You must learn regexp one time and don't use useless libraries