or npm.npm mount vue-bind-once-- conserve.Sign up instruction.import createApp from 'vue'.bring in Application from './ App.vue'.import BindOnceDirective, BindOncePlugin coming from 'vue-bind-once'.const application = createApp( App).app.use( BindOncePlugin).// or app.directive(' bind-once', BindOnceDirective).Most of the times you'll be actually using this ordinance along with an SSR-rendering structure like nuxt, which may possess a various way for you to register this ordinance. For example, in a Nuxt plugin:.bring in BindOncePlugin coming from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp => nuxtApp.vueApp.use( BindOncePlugin). ).Use.You can easily right now make use of the directive on any sort of component where you need to have a binding to a value that needs to match between client/server yet won't modify dynamically later on.
This will service both hosting server and on client re-hydration.