using the component through a CDN
See original GitHub issueHow would you use fullcalendar-vue with a CDN?
I’m getting Unknown custom element: <fullcalendar>
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<link href='https://unpkg.com/@fullcalendar/core@4.1.0/main.css' rel='stylesheet' />
<link href='https://unpkg.com/@fullcalendar/daygrid@4.1.0/main.css' rel='stylesheet' />
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
<script src='https://unpkg.com/@fullcalendar/core@4.1.0/main.js'></script>
<script src='https://unpkg.com/@fullcalendar/daygrid@4.1.0/main.js'></script>
<script src="https://unpkg.com/@fullcalendar/vue@4.1.0/main.umd.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
var app = new Vue({
el: "#app",
components: {
FullCalendar: window.FullCalendarVue.default
},
data() {
return {
calendarPlugins: [window.FullCalendarDayGrid.default]
}
}
});
});
</script>
</head>
<body>
<div id="app">
<FullCalendar defaultView="dayGridMonth" :plugins="calendarPlugins" />
</div>
</body>
</html>
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
How CDN Components Work Together for Faster Delivery
Content delivery networks (CDNs) improve streaming performance. A CDN cuts page load times by two-thirds or more, providing end-users with ...
Read more >CDN Components | How Can CDN solutions Help your Website
The two main components of CDN solutions are the host server and the Point of Presence (PoP) Servers. The host origin server is...
Read more >What is a CDN? | How do CDNs work? - Cloudflare
A content delivery network (CDN) refers to a geographically distributed group of servers which work together to provide fast delivery of Internet content....
Read more >What is a CDN? How does a CDN Work? - Imperva
CDN PoPs (Points of Presence) are strategically located data centers responsible for communicating with users in their geographic vicinity. Their main function ...
Read more >How to build a CDN (1/3): introduction and basic components
CDN components The following chapters describe in more detail the individual components of the CDN that you will need: Domain — used...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It feels abnormal to be using CDNs instead of my regular npm/webpack workflow, but it’s for a legacy project that would take too long to get that set up.
The Fullcalendar-Vue connector now publishes a browser-global JS file in
dist/main.global.js
: https://cdn.jsdelivr.net/npm/@fullcalendar/vue@5.2.0/dist/main.global.min.jsA demo of how to use it: https://github.com/fullcalendar/fullcalendar/blob/master/examples/_global-vue.html