V-calendar: SSR without nuxt.js

Created on 4 Jun 2019  路  3Comments  路  Source: nathanreyes/v-calendar

Hello. Thanks for your great component.

I use ssr in my project. Is it possible use v-calendar in ssr without nuxt.js?

Most helpful comment

~plugins/datepicker.js
'import Vue from 'vue'; import Vcalendar from 'v-calendar'; Vue.use(Vcalendar);

nuxt.config.js
plugins: [{ ssr: false, src: '~plugins/datepicker.js' }]

Woohoo! That's it. You can use the module now.
<v-date-picker v-model="date" > </v-date-picker>

I would suggest you adding tag,
<no-ssr> <v-date-picker v-model="date" > </v-date-picker> </no-ssr>

Cheers.

All 3 comments

~plugins/datepicker.js
'import Vue from 'vue'; import Vcalendar from 'v-calendar'; Vue.use(Vcalendar);

nuxt.config.js
plugins: [{ ssr: false, src: '~plugins/datepicker.js' }]

Woohoo! That's it. You can use the module now.
<v-date-picker v-model="date" > </v-date-picker>

I would suggest you adding tag,
<no-ssr> <v-date-picker v-model="date" > </v-date-picker> </no-ssr>

Cheers.

~plugins/datepicker.js
'import Vue from 'vue'; import Vcalendar from 'v-calendar'; Vue.use(Vcalendar);

nuxt.config.js
plugins: [{ ssr: false, src: '~plugins/datepicker.js' }]

Woohoo! That's it. You can use the module now.
<v-date-picker v-model="date" > </v-date-picker>

I would suggest you adding tag,
<no-ssr> <v-date-picker v-model="date" > </v-date-picker> </no-ssr>

Cheers.

Good, thanks.
But read my message one more time please

Oh! My bad. I didn't notice the SSR. I don't think it supports SSR :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

redraw picture redraw  路  3Comments

jvincent3 picture jvincent3  路  4Comments

Maadtin picture Maadtin  路  3Comments

nik736 picture nik736  路  3Comments

rcascante picture rcascante  路  3Comments