Sleep

1 vue-bind-once - Vue.js Supplied #.\n\nA very small, SSR-safe directive for binding random records to a factor.\n\nQuick Start.\nTo begin with put in vue-bind-once:.\nanecdote add vue-bind-once.\n\n

or npm.npm put in vue-bind-once-- conserve.Sign up instruction.import createApp coming from 'vue'.import Application from './ App.vue'.import BindOnceDirective, BindOncePlugin from 'vue-bind-once'.const app = createApp( Application).app.use( BindOncePlugin).// or even app.directive(' bind-once', BindOnceDirective).In most cases you'll be actually using this ordinance with an SSR-rendering structure like nuxt, which may possess a different method for you to register this directive. 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 now make use of the directive on any type of element where you require a binding to a worth that requires to match in between client/server but will not transform dynamically after that.
This will deal with both server and on customer re-hydration.

Articles You Can Be Interested In