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

Dynamic Styling With Vue.js and CSS

Interacting with a website and watching it change without refreshing the page is key to a user friendly experience. Changing colors is usually a process that’s done by manipulating the DOM with CSS and JavaScript. Vue.js has it’s own ways of doing this as well.

Continue reading