[Vuejs]-Vuejs – When to use v-for? v-html?

0👍

v-for is slower to load but it’s faster when the list changes. v-html will have a faster loading time, but that loading time will be the same as the update time.

So, if the list is static and it won’t change during the time it’s rendered (like a list of items that can be deleted), you could use v-html, but if that list could change, use v-for.

Leave a comment