Sleep

1 vue-bind-once - Vue.js Supplied #.\n\nA tiny, SSR-safe instruction for binding arbitrary records to a factor.\n\nFlying start.\nInitially put in vue-bind-once:.\nanecdote add vue-bind-once.\n\n

or npm.npm put up vue-bind-once-- conserve.Sign up regulation.import createApp from 'vue'.bring in App from './ App.vue'.bring in BindOnceDirective, BindOncePlugin coming from 'vue-bind-once'.const app = createApp( App).app.use( BindOncePlugin).// or even app.directive(' bind-once', BindOnceDirective).Most of the times you'll be actually using this regulation along with an SSR-rendering platform like nuxt, which might have a different technique for you to enroll this ordinance. For example, in a Nuxt plugin:.import BindOncePlugin coming from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Utilization.You can currently make use of the instruction on any aspect where you require a binding to a value that requires to match in between client/server yet will not alter dynamically later on.
This are going to service each hosting server as well as on client re-hydration.

Articles You Can Be Interested In