Comments (5)
Hi @vkurko
I was able to use it in the angular app with Pre-built browser ready bundle.
Here are some snippets, in case someone would need them.
-
Add the pre-build browser-ready bundle
js
andcss
files toindex.html
-
In the component where you want to show the event calendar add
declare const EventCalendar: any
at the top of your component outside the component class, just below the imports. -
Add a
<div id="ec"></div
in the component html file -
Uses the
EventCalendar
variable to initialize the event calendar, preferrably in thengAfterViewInit
method like
let this.ec = new EventCalendar(document.getElementById('ec'), { //options })
from calendar.
@MirwaisAkrami Thanks for sharing your solution 😄
from calendar.
Unfortunately, my experience with Angular was many years ago, and now I can hardly help. If you are well versed in Angular, you may find it useful to look at a similar implementation from FullCalendar.
from calendar.
Thanks for the instant reply @vkurko
@MirwaisAkrami If possible can you share the sample code/repo?
Also if you are adding pre-build bundles, do we need to install npm install --save-dev @event-calendar/core ??
I have just started development in angular, pls guide me if i am going in wrong direction..
from calendar.
@poke-fcr hi,
No, You don't need to run npm install for that.
I am sorry, our repo is private to share, but if you follow the steps in my previous comment then you will be good to go.
Angular is a great framework, I will be glad to help you along the way.
from calendar.
Related Issues (20)
- Header day widths wrong in initial load HOT 13
- Unexpected token (238:11) HOT 6
- Uncaught TypeError: Cannot read properties of null (reading 'context') HOT 3
- Now Indicator HOT 4
- Undo editing before the current time HOT 2
- Time grid mobile styling HOT 5
- Option for resizing step time HOT 3
- Demo does not display on iOS HOT 4
- Unable to pass "headers" in EventSource POST HOT 3
- イベントカレンダーの表示について HOT 1
- Method like "gotoDate()" HOT 2
- nowIndicator line HOT 1
- Svelte 5 support HOT 1
- Is there a changeview API like fullcalendar? HOT 2
- Is there a way to set the z index per event? HOT 2
- Add some of the global.css styles to the core css HOT 8
- Local development HOT 1
- Calendar2 HOT 1
- Using svelte component for event displaying HOT 2
- Support multiple layers of (auto) events HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calendar.