Skip to content

jtweeks/icsFormatter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ng-icsFormatter

Fork of icsFormatter which is a fork of ics icsFormatter -- https://github.com/matthiasanderer/icsFormatter ics -- https://github.com/nwcell/ics.js

Created an angular factory from the original icsFormatter.

Installation:

bower install ng-icsFormatter

Include library: /ng-icsFormatter/ng-icsFormatter.js

Add module to app: 'IcsFormatter'

Example:

$scope.addToCalendar = function() {

    var title = 'Event Title';
    var place = 'Event location';
    var begin = new Date();
    var end = new Date().getTime() + (4 * 60 * 60);

    var description = title + '\n' + begin + '\n' + place + '\nMessage body';

    IcsFormatter.addEvent(title,description, place, begin, end);
    IcsFormatter.download('event');
};

Credits

Packages

No packages published

Languages

  • JavaScript 100.0%