Angular 2+ add to calendar.
npm install ng-add-to-calendar --save
The basic usage scenario can be described in three steps.
import { AddToCalendarModule } from "ng-add-to-calendar";
@NgModule({
imports: [
...,
AddToCalendarModule,
],
...
})
...
addToCalendarData: IAddToCalendarData {
label: string;
title: string;
description: string;
location: string;
start: Date;
end: Date;
}
...
<!-- with default markup -->
<ng-add-to-calendar [options]="addToCalendarData"></ng-add-to-calendar>
Issues and PRs are welcome. You can provide your feedback or drop us a support request at namane.toufik@gmail.com.