Sleep

1 vue-bind-once - Vue.js Supplied #.\n\nA tiny, SSR-safe instruction for tiing random data to a factor.\n\nFlying start.\nFirst mount vue-bind-once:.\nanecdote incorporate vue-bind-once.\n\n

or npm.npm install vue-bind-once-- conserve.Register regulation.import createApp coming from 'vue'.import Application from './ App.vue'.bring in BindOnceDirective, BindOncePlugin from 'vue-bind-once'.const app = createApp( App).app.use( BindOncePlugin).// or app.directive(' bind-once', BindOnceDirective).Most of the times you'll be actually using this instruction with an SSR-rendering structure like nuxt, which may possess a various technique for you to register this ordinance. For instance, in a Nuxt plugin:.bring in BindOncePlugin from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Use.You can currently make use of the regulation on any sort of element where you need to have a binding to a worth that requires to match in between client/server however won't transform dynamically later on.
This will definitely work on both server and also on customer re-hydration.

Articles You Can Be Interested In