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'.
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'.