@fullcalendar/angular
TypeScript icon, indicating that this package has built-in type declarations

6.1.20 • Public • Published

FullCalendar Angular Component

The official Angular Component for FullCalendar

Installation

Install the Angular connector, the core package, and any plugins (like daygrid):

npm install @fullcalendar/angular @fullcalendar/core @fullcalendar/daygrid

Usage

First, connect FullCalendarModule to your app module:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FullCalendarModule } from '@fullcalendar/angular';
import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FullCalendarModule // register FullCalendar with your app
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Then, use the full-calendar component, supplying an options object:

import { Component } from '@angular/core';
import { CalendarOptions } from '@fullcalendar/core';
import dayGridPlugin from '@fullcalendar/daygrid';

@Component({
  selector: 'app-root',
  templateUrl: `
    <div>
      <h1>Demo App</h1>
      <full-calendar [options]="calendarOptions"></full-calendar>
    </div>
  `,
  styleUrls: ['./app.component.scss']
})
export class AppComponent {
  calendarOptions: CalendarOptions = {
    plugins: [dayGridPlugin],
    initialView: 'dayGridMonth',
    weekends: false,
    events: [
      { title: 'Meeting', start: new Date() }
    ]
  };
}

You can even supply nested templates:

<full-calendar [options]="calendarOptions">
  <ng-template #eventContent let-arg>
    <b>{{arg.timeText}}</b>
    <i>{{arg.event.title}}</i>
  </ng-template>
</full-calendar>

Supported Angular Versions

@fullcalendar/angular version 6 supports Angular 12 - 20

Links

History

This project is built and maintained by irustm in partnership with the maintainers of FullCalendar. The project was originally called ng-fullcalendar which can still be found on NPM.

Development

You must install this repo with PNPM:

pnpm install

Available scripts (via pnpm run <script>):

  • build - build production-ready dist files
  • watch - build & watch development dist files
  • start - run a simple example application
  • test - test headlessly
  • test:dev - test interactively
  • clean

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
6.1.2093,712latest
5.11.55,372legacy
7.0.0-rc.392rc
7.0.0-beta.88beta
7.1.0-alpha.04alpha

Version History

VersionDownloads (Last 7 Days)Published
7.0.0-rc.392
7.0.0-rc.227
7.1.0-alpha.04
7.0.0-rc.115
7.0.0-beta.88
7.0.0-beta.78
6.1.2093,712
6.1.1920,333
6.1.183,871
6.1.178,888
7.0.0-rc.0123
7.0.0-beta.43
7.0.0-beta.32
6.1.166,055
7.0.0-beta.21
7.0.0-beta.13
7.0.0-beta.08
6.1.158,098
6.1.141,496
6.1.1361
6.1.106,350
6.1.91,114
6.1.82,470
6.1.7240
5.11.55,372
6.1.6198
6.1.5660
6.1.4285
6.1.30
6.1.1188
6.1.02
5.11.4315
6.0.3966
6.0.2195
6.0.1256
6.0.0118
6.0.0-beta.42
6.0.0-beta.31
6.0.0-beta.252
5.11.3727
5.11.2475
5.11.0774
5.10.2563
5.10.1447
5.10.059
5.9.0256
5.8.0202
5.7.293
5.7.1460
5.7.036
5.6.0117
5.5.0411
5.4.0181
5.3.187
5.3.015
5.2.052
5.1.044
5.0.057
5.0.0-rc0
4.4.21,320
5.0.0-beta.47
5.0.0-beta.31
5.0.0-beta.215
5.0.0-beta.11
4.4.5-beta3,499
4.4.188
4.4.00
4.3.1165
4.3.020
4.2.189
4.2.07
4.1.138
4.1.011
4.0.2-beta41