Sleep

1 vue-bind-once - Vue.js Nourished #.\n\nA tiny, SSR-safe directive for binding arbitrary data to a component.\n\nQuick Start.\nTo begin with set up vue-bind-once:.\nyarn include vue-bind-once.\n\n

or npm.npm put in vue-bind-once-- conserve.Sign up directive.import createApp coming from 'vue'.import Application coming from './ App.vue'.bring in 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 might possess a different way for you to enroll this ordinance. For instance, in a Nuxt plugin:.bring in BindOncePlugin coming from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Usage.You may currently utilize the directive on any type of factor where you need to have a binding to a worth that needs to match between client/server yet won't transform dynamically after that.
This will certainly service each hosting server as well as on customer re-hydration.

Articles You Can Be Interested In