Parser for iCalendar written for Angular. This package is under development and should not be used in production.
- Angular (Tested with Angular v7)
- moment (Tested with Moment v2.24.0)
Run npm install angular-icalendar
to install.
In your xxx.module.ts file :
import { AngularIcalendarModule } from 'angular-icalendar';
...
@NgModule({
imports: [
...,
AngularIcalendarModule,
...
],
In your xxx.component.ts file :
import { IcsParserService } from 'angular-icalendar';
...
export class CalendarsComponent implements OnInit {
constructor(
private icsParser: IcsParserService
) {}
sampleFunction(): void {
let parsedCal = this.icsParser.parseICS(ics_string);
}
Feel free to create pull request.