Sleep

1 vue-bind-once - Vue.js Feed #.\n\nA tiny, SSR-safe ordinance for tiing random data to an element.\n\nQuick Start.\nTo begin with put up vue-bind-once:.\nanecdote include vue-bind-once.\n\n

or npm.npm put up vue-bind-once-- spare.Sign up ordinance.import createApp from 'vue'.bring in App from './ App.vue'.bring in BindOnceDirective, BindOncePlugin from 'vue-bind-once'.const application = createApp( Application).app.use( BindOncePlugin).// or app.directive(' bind-once', BindOnceDirective).In many cases you'll be utilizing this regulation along with an SSR-rendering framework like nuxt, which may have a various way for you to register this regulation. As an example, in a Nuxt plugin:.bring in BindOncePlugin coming from 'vue-bind-once'.export nonpayment defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Utilization.You may currently make use of the instruction on any kind of component where you require a binding to a worth that requires to match in between client/server but won't alter dynamically afterwards.
This will certainly focus on both hosting server and also on client re-hydration.