or even npm.npm mount vue-bind-once-- save.Sign up regulation.bring in createApp coming from 'vue'.import Application from './ App.vue'.import BindOnceDirective, BindOncePlugin from 'vue-bind-once'.const application = createApp( App).app.use( BindOncePlugin).// or even app.directive(' bind-once', BindOnceDirective).In most cases you'll be using this regulation with an SSR-rendering platform like nuxt, which might have a various means for you to register this instruction. As an example, in a Nuxt plugin:.bring in BindOncePlugin from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp => nuxtApp.vueApp.use( BindOncePlugin). ).Usage.You may now make use of the ordinance on any sort of element where you need a binding to a market value that requires to match in between client/server but won't change dynamically later on.
This are going to focus on each server and on customer re-hydration.