Sleep

1 vue-bind-once - Vue.js Feed #.\n\nA tiny, SSR-safe regulation for binding arbitrary records to a factor.\n\nFlying start.\nTo begin with put up vue-bind-once:.\nanecdote add vue-bind-once.\n\n

or npm.npm mount vue-bind-once-- save.Register ordinance.bring in createApp from 'vue'.import App from './ App.vue'.import BindOnceDirective, BindOncePlugin from 'vue-bind-once'.const application = createApp( App).app.use( BindOncePlugin).// or even app.directive(' bind-once', BindOnceDirective).In most cases you'll be actually using this regulation along with an SSR-rendering platform like nuxt, which may possess a different technique for you to enroll this regulation. For instance, in a Nuxt plugin:.bring in BindOncePlugin from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Consumption.You can easily now utilize the directive on any element where you require a binding to a value that requires to match in between client/server however will not transform dynamically afterwards.
This are going to service both server as well as on customer re-hydration.

Articles You Can Be Interested In