A simple library to create and download a basic .ics file from an Angular application.
npm install angular-ics-generatornpm install angular-ics-generator
import { AngularIcsGeneratorService } from 'angular-ics-generator';
const startDate = new Date();
const endDate = new Date();
this._icsService.DownloadIcs(startDate,
endDate,
'my event title',
'my event description',
url,
'location',
'My organization', // organisation is optional
'EN', // locale is optional. EN will be used if no locale is provided
'15'); // Optional value for minutes to set reminder. Will have no automatic reminder if not provided.
``