Sleep

1 vue-bind-once - Vue.js Supplied #.\n\nA very small, SSR-safe regulation for tiing arbitrary records to an element.\n\nQuick Start.\nTo begin with install vue-bind-once:.\nyarn incorporate vue-bind-once.\n\n

or npm.npm set up vue-bind-once-- conserve.Register regulation.import createApp coming from 'vue'.bring in Application coming from './ App.vue'.import BindOnceDirective, BindOncePlugin coming from 'vue-bind-once'.const application = createApp( Application).app.use( BindOncePlugin).// or app.directive(' bind-once', BindOnceDirective).Most of the times you'll be using this directive with an SSR-rendering framework like nuxt, which might possess a various method for you to register this ordinance. For example, in a Nuxt plugin:.bring in BindOncePlugin from 'vue-bind-once'.export nonpayment defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Consumption.You may now make use of the ordinance on any sort of component where you require a binding to a worth that needs to have to match in between client/server however won't modify dynamically later on.
This will definitely work with both web server as well as on customer re-hydration.

Articles You Can Be Interested In