- Notifications
You must be signed in to change notification settings - Fork188
The official Angular component for FullCalendar
License
fullcalendar/fullcalendar-angular
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The officialAngular Component forFullCalendar
Install the Angular connector, the core package, and any plugins (likedaygrid):
npm install @fullcalendar/angular @fullcalendar/core @fullcalendar/daygrid
First, connectFullCalendarModule
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]})exportclassAppModule{}
Then, use thefull-calendar
component, supplying anoptions object:
import{Component}from'@angular/core';import{CalendarOptions}from'@fullcalendar/core';importdayGridPluginfrom'@fullcalendar/daygrid';@Component({selector:'app-root',templateUrl:` <div> <h1>Demo App</h1> <full-calendar [options]="calendarOptions"></full-calendar> </div> `,styleUrls:['./app.component.scss']})exportclassAppComponent{calendarOptions:CalendarOptions={plugins:[dayGridPlugin],initialView:'dayGridMonth',weekends:false,events:[{title:'Meeting',start:newDate()}]};}
You can even supply nested templates:
<full-calendar[options]="calendarOptions"><ng-template#eventContentlet-arg><b>{{arg.timeText}}</b><i>{{arg.event.title}}</i></ng-template></full-calendar>
@fullcalendar/angular
version 6 supports Angular 12 - 18
This project is built and maintained byirustm in partnership with the maintainers of FullCalendar. The project was originally calledng-fullcalendar
which can still befound on NPM.
You must install this repo withPNPM:
pnpm install
Available scripts (viapnpm run <script>
):
build
- build production-ready dist fileswatch
- build & watch development dist filesstart
- run a simple example applicationtest
- test headlesslytest:dev
- test interactivelyclean
About
The official Angular component for FullCalendar
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.