Sleep

1 vue-bind-once - Vue.js Supplied #.\n\nA tiny, SSR-safe instruction for tiing arbitrary information to a factor.\n\nFlying start.\nFirst put up vue-bind-once:.\nanecdote include vue-bind-once.\n\n

or even npm.npm set up vue-bind-once-- save.Register ordinance.import createApp from 'vue'.import App from './ App.vue'.bring in BindOnceDirective, BindOncePlugin coming from 'vue-bind-once'.const app = createApp( App).app.use( BindOncePlugin).// or app.directive(' bind-once', BindOnceDirective).In many cases you'll be actually using this instruction along with an SSR-rendering platform like nuxt, which may have a various way for you to enroll this directive. For example, in a Nuxt plugin:.bring in BindOncePlugin coming from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Utilization.You can easily right now use the ordinance on any element where you require a binding to a market value that requires to match in between client/server yet won't modify dynamically afterwards.
This will certainly deal with both server as well as on customer re-hydration.

Articles You Can Be Interested In