Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-addtocalendar

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-addtocalendar

AngularJS directive for adding events to calendar apps

  • 1.1.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
125
decreased by-19.87%
Maintainers
1
Weekly downloads
 
Created
Source

angular-addtocalendar

v1.1.6

An AngularJS directive for adding an event to calendar apps. It supports .ics files for iCalendar and Outlook and also supports Google Calendar, Yahoo! Calendar and Microsoft Calendar.

Enjoy!

Coverage Status Build Status npm version License

dependency Status devDependency Status

Installation

bower:

bower install angular-addtocalendar

npm:

npm install angular-addtocalendar

You can also download it directly.

Inject the dependency jshor.angular-addtocalendar into your app:

angular
  .module('myApp', [
    'jshor.angular-addtocalendar', 
    'ui.bootstrap',
    ...
  ]);

Demo

For a demo, please click here.

Example

<addtocalendar
    start-date="20150704T190000"
    end-date="20150704T210000"
    title="Fourth of July Fireworks"
    location="Battery Park City, New York, NY"
    class-name="btn btn-sm btn-default dropdown-toggle"
    description="Celebrate the independence of the United States with fireworks in one of the greatest cities in the world."
    btn-text="Add to calendar">
</addtocalendar>

Attributes

AttributeDescriptionFormatExampleRequired
titleName of the event.Plain textFourth of July FireworksYes
descriptionDescription of the event.Plain text. Default nil.Celebrate the independence of the United States with fireworks in one of the greatest cities in the world.No
locationLocation of the event.Plain textBattery Park City, New York, NYYes
start-dateThe timestamp of when the event begins.Date string in format YYYYMMDDToHHMMSS20150704T190000Yes
end-dateThe timestamp of when the event ends.Date string in format YYYYMMDDToHHMMSS20150704T210000Yes
class-nameThe bootstrap class for the dropdown button (more info)Bootstrap class/plain text. Default btn btn-sm btn-default dropdown-togglebtn btn-sm btn-default dropdown-toggleNo
btn-textText for the button to displayPlain text. Default Add to calendarAdd to calendarNo
uib-dropdownWhether to use ui-bootstrap dropdownnull Default Add to calendarnullNo

Browser Support

All browsers support adding to Yahoo!, Microsoft, and Google calendars. Below is the current support for downloading .ics files for Outlook and iCalendar.

Browser.ics Support
Internet Explorer9.0+
EdgeYes
SafariNo
Firefox20.0+
Opera15.0+
Chrome14.0+
Android4.4+

Bugs

Please report all bugs here.

Changelog

Available here.

Keywords

FAQs

Package last updated on 28 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc