V-once in Vue.js

V-once is a Vue.js directive that will render an element or component only once. On subsequent re-renders, the HTML element holding the v-once directive will not update. To demonstrate how this works take a look at the simple “Hello World” setup below.

Continue reading

Advertisements