title: Create Event in Outlook Calendar using Angular 5
body: <p>I am using angular version 5.2. I am doing a roombooking portal ,In that I have a requirement I have to add an event to outook calendar for the day on which room has been book.I have a table in which all my booking is listed and on that i have button in every row for adding event in calendar outlook.I have tried with below code: </p>
  
  <pre><code>var icsMSG = "BEGIN:VCALENDAR\nVERSION:2.0\nCALSCALE:GREGORIAN\nMETHOD:PUBLISH\nBEGIN:VEVENT\nUID:9832@meetingplanner.io\nDTSTART:" + bookingInfo.StartDate + "\nDTEND:" + bookingInfo.EndDate + "\nDTSTAMP:" + bookingInfo.StartDate + "\nLOCATION: " + bookingInfo.SpaceDescription + "\nSUMMARY: " + bookingInfo.EventDescription + "\nSEQUENCE:0\nTRANSP:OPAQUE\nEND:VEVENT\nEND:VCALENDAR";
  window.open("data:text/calendar;charset=utf8," + escape(icsMSG));
  </code></pre>
  
  <p>this was usinng ical js but it is not working in IE.Also in chrome it is giving exception at build time that escape not defined.
  Thanks in advance !</p>