nekken / ng2-fullcalendar

95 stars 47 forks source link

full calendar resources unable to fetch #66

Open mitukulavenkatesh opened 6 years ago

mitukulavenkatesh commented 6 years ago

components.ts

import { CalendarComponent } from 'ng-fullcalendar'; import { Options } from 'fullcalendar';

export class ClientCalendarComponent implements OnInit { calendarOptions: Options; @ViewChild(CalendarComponent) ucCalendar: CalendarComponent; constructor(private clientCalendarService: ClientCalendarService, private route: ActivatedRoute, private router: Router) { }

this.calendarOptions = { header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay,listWeek' }, defaultView: 'agendaDay', selectable: true, resources: [ { id: 'a', title: 'Room A' } ], events: [ { id: '1', resourceId: 'a', title: 'Meeting', start: '2015-02-14' } ] }; }

im facing the issue with resources. giving error as below how to resolve this

C: Type '{ header: { left: string; center: string; right: string; }; defaultView: string; selectable: true...' is not assignable to type 'Options'. Object literal may only specify known properties, and 'resources' does not exist in type 'Options'.

Windowsz commented 6 years ago

** +1 i have same issue

Now I have resolve that problem by install fullcalendar-schedule