Sleep

1 vue-bind-once - Vue.js Supplied #.\n\nA tiny, SSR-safe directive for tiing arbitrary records to an aspect.\n\nFlying start.\nInitially set up vue-bind-once:.\nyarn add vue-bind-once.\n\n

or npm.npm mount vue-bind-once-- conserve.Sign up instruction.import createApp from 'vue'.import App coming from './ App.vue'.bring in BindOnceDirective, BindOncePlugin from 'vue-bind-once'.const app = createApp( App).app.use( BindOncePlugin).// or app.directive(' bind-once', BindOnceDirective).In most cases you'll be using this instruction along with an SSR-rendering structure like nuxt, which might have a different method for you to register this instruction. For instance, in a Nuxt plugin:.import BindOncePlugin coming from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Usage.You may right now utilize the directive on any kind of aspect where you need a binding to a market value that needs to match in between client/server but won't transform dynamically afterwards.
This will work on both hosting server and on client re-hydration.

Articles You Can Be Interested In