Sleep

1 vue-bind-once - Vue.js Nourished #.\n\nA very small, SSR-safe regulation for tiing random records to a factor.\n\nFlying start.\nInitially set up vue-bind-once:.\nyarn incorporate vue-bind-once.\n\n

or even npm.npm mount vue-bind-once-- conserve.Sign up ordinance.bring in createApp coming from 'vue'.import App coming from './ App.vue'.bring in BindOnceDirective, BindOncePlugin coming from 'vue-bind-once'.const application = createApp( Application).app.use( BindOncePlugin).// or app.directive(' bind-once', BindOnceDirective).In most cases you'll be actually utilizing this regulation with an SSR-rendering framework like nuxt, which may have a various way for you to register this regulation. For instance, in a Nuxt plugin:.bring in BindOncePlugin from 'vue-bind-once'.export nonpayment defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Consumption.You may currently utilize the directive on any element where you need to have a binding to a worth that needs to match between client/server however won't transform dynamically after that.
This will work on both web server and on customer re-hydration.

Articles You Can Be Interested In