angular-ics-generator
TypeScript icon, indicating that this package has built-in type declarations

1.0.11 • Public • Published

Angular .ics Generator

A simple library to create and download a basic .ics file from an Angular application.

Installing

npm install angular-ics-generator

Use versions as following 1.0.6 for Angular 13 1.0.7 for Angular 14 1.0.8 for Angular 15 1.0.9 for Angular 16

Using

Import the generator service:

import { AngularIcsGeneratorService } from 'angular-ics-generator';

Then call it like this:

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.

This will generate and download the .ics file. All the user will need to do is open the file and save the event in any calendar app supporting this format

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i angular-ics-generator

Weekly Downloads

41

Version

1.0.11

License

MIT

Unpacked Size

19.3 kB

Total Files

11

Last publish

Collaborators

  • idaniel