You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For future viewers, as of v0.9.2 you must import and call setupCalendar before using components
import{setupCalendar,Calendar}from'v-calendar';// Call setupCalendar and pass in optional defaultssetupCalendar({firstDayOfWeek: 2// Use Monday instead of Sunday as first day of the week});newVue({el: '#app',components: {'v-calendar': Calendar,}});
@nathanreyes Could you please further explain this?
I copied your code exactly as is in my main.js, but when I try to use it inside another component, it won't recognize any of the changes made by the setupCalendar function.
I just want to suggest export components from main file too to use needed component locally. When I use Vue for SPA, I prefer component injection.
example usage:
The text was updated successfully, but these errors were encountered: