DayFlowSTUDIO

Angular calendar component

Open-Source Angular Event Calendar

DayFlow is an MIT-licensed calendar component for Angular. Unlike the other adapters there is no composable: the calendar configuration is a plain class property, and <dayflow-calendar> takes it through an input binding. That makes it ordinary Angular — a field on the component, declared where you declare everything else.

Try the interactive demoInstallation guide
Package
@dayflow/angular
Requires
Angular 14 or newer
Licence
MIT
Views
Day, week, month, year, agenda

Add DayFlow to a Angular app

Install the Angular adapter, the calendar core and the drag plugin.

npm install @dayflow/angular @dayflow/core @dayflow/plugin-drag

The stylesheet is not optional — without @dayflow/core/dist/styles.css the grid renders unstyled. If your app uses Tailwind, import @dayflow/core/dist/styles.components.css instead, which leaves out the CSS reset that would otherwise fight Tailwind's preflight.

This component opens on today with one event you can drag or resize in the time grid.

import { Component } from '@angular/core';
import { DayFlowCalendarModule } from '@dayflow/angular';
import {
  createDayView,
  createWeekView,
  createMonthView,
  createEventsPlugin,
  createEvent,
} from '@dayflow/core';
import { createDragPlugin } from '@dayflow/plugin-drag';
import '@dayflow/core/dist/styles.css';

@Component({
  selector: 'app-team-calendar',
  standalone: true,
  imports: [DayFlowCalendarModule],
  template: '<dayflow-calendar [calendar]="calendar"></dayflow-calendar>',
})
export class TeamCalendarComponent {
  calendar = {
    views: [createDayView(), createWeekView(), createMonthView()],
    plugins: [createDragPlugin(), createEventsPlugin()],
    events: [
      createEvent({
        id: 'team-meeting',
        title: 'Team meeting',
        start: new Date(2026, 0, 14, 10, 0),
        end: new Date(2026, 0, 14, 11, 0),
      }),
    ],
    initialDate: new Date(),
  };
}

What is specific to Angular

No hook, just a property

React, Vue and Svelte call useCalendarApp. Angular does not: assign the same configuration object to a class property and bind it. Everything inside the object is identical across the four frameworks, so a snippet from the React or Vue docs ports by moving it onto the class.

Standalone component import

DayFlowCalendarModule goes in the component's own imports array when you use standalone components, or in an NgModule's imports if your app is still module-based. Both work; nothing else needs registering.

Where the events come from

Build the events array with createEvent in one mapping function from whatever your service returns. Keeping that conversion in a single place is also where you handle time zone normalisation — see the time zones guide.

Plan the day or scan the whole year

Register only the views you need. The day view suits appointments, the week view a team's schedule, the month view a workload at a glance, and the two year views a whole planning horizon. The same events stay in place as users switch layouts.

Create and adjust events in the grid

Drag across the grid to create an event, move it to reschedule, or resize it to change its duration. The drag plugin reports every change, so your own scheduling rules decide what is allowed before anything is saved.

Add only what you use

Behaviour arrives as plugins rather than configuration flags, so nothing you skip ends up in the bundle.

Coming from another Angular calendar

Most Angular teams are coming from a dedicated Angular calendar component or from FullCalendar's Angular wrapper. The difference worth planning for is where the licence boundary sits: in FullCalendar, resource and timeline views are commercial, so a product that grows into resource planning hits that boundary inside the same library. Here the calendar and all five view types stay MIT and resource planning is a separate module you add if you need it. The FullCalendar comparison maps the options side by side.

When dates are not the main axis

If your users ask “who is assigned, and when?” rather than “what is happening on this date?”, a calendar is the wrong primitive:

Angular calendar questions

Is the Angular calendar free to use?

Yes. @dayflow/angular, @dayflow/core and the plugins used on this page are MIT licensed, including the day, week, month, year and agenda views. Resource timelines, resource grids, appointment booking and print output are separate paid modules.

Which Angular versions are supported?

Angular 14 or newer. The adapter declares @angular/core and @angular/common as peer dependencies with a >=14.0.0 range, so it uses the copy already in your workspace.

Does it work with standalone components?

Yes. Put DayFlowCalendarModule in the standalone component’s own imports array. If your application still uses NgModules, add it to that module’s imports instead — both are supported.

Is there an Angular composable or signal API?

No composable is needed. The calendar configuration is a plain object assigned to a class property and passed through the [calendar] input, so it fits whatever state management the component already uses.

How do I control the calendar height?

The calendar fills the width of its container and takes its height from the --df-calendar-height custom property on .df-calendar-container. Set it to a fixed value, a viewport unit, or anything else CSS accepts. The theme customization guide covers the rest of the token surface.

Next steps