or even npm.npm put in vue-bind-once-- save.Sign up directive.import createApp coming from 'vue'.bring in App from './ App.vue'.import BindOnceDirective, BindOncePlugin from 'vue-bind-once'.const application = createApp( Application).app.use( BindOncePlugin).// or app.directive(' bind-once', BindOnceDirective).For the most part you'll be utilizing this directive with an SSR-rendering platform like nuxt, which might possess a various technique for you to enroll this instruction. For instance, in a Nuxt plugin:.import BindOncePlugin from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp => nuxtApp.vueApp.use( BindOncePlugin). ).Usage.You may now use the ordinance on any sort of component where you need to have a binding to a market value that requires to match between client/server yet will not alter dynamically afterwards.
This will service both hosting server as well as on customer re-hydration.