Git Product home page Git Product logo

Comments (5)

MirwaisAkrami avatar MirwaisAkrami commented on May 29, 2024 1

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.

  1. Add the pre-build browser-ready bundle js and css files to index.html

  2. 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.

  3. Add a <div id="ec"></div in the component html file

  4. Uses the EventCalendar variable to initialize the event calendar, preferrably in the ngAfterViewInit method like
    let this.ec = new EventCalendar(document.getElementById('ec'), { //options })

from calendar.

vkurko avatar vkurko commented on May 29, 2024 1

@MirwaisAkrami Thanks for sharing your solution 😄

from calendar.

vkurko avatar vkurko commented on May 29, 2024

Hi @MirwaisAkrami

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.

poke-fcr avatar poke-fcr commented on May 29, 2024

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.

MirwaisAkrami avatar MirwaisAkrami commented on May 29, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.