fullcalendar for event angular code example

Example: fullcalendar angular add events

calendarOptions = {
    height: '100%',
    fixedWeekCount: false,
    defaultDate: moment().format('YYYY-MM-DD'),
    allDaySlot: false,
    displayEventTime: true,
    editable: true,
    eventLimit: true,
    lazyFetching: false,
    nowIndicator: true,
    refetchResourcesOnNavigate: true,
    events: [],
    plugin: [dayGridPlugin, interactionPlugin],
    dateClick: this.getAppointmentsForSpecificDate.bind(this), // this line
  };

  etAppointmentsForSpecificDate(arg) {
    console.log(args)
  }