nekken / ng2-fullcalendar

95 stars 47 forks source link

How to use custom buttons? #51

Closed RZR666 closed 7 years ago

RZR666 commented 7 years ago

Hi,

I've got the Calendar up and running in Ionic 3 and it works great, I'm trying to use custom buttons for the next/prev events but I'm running into an issue...

@ViewChild('calendar') myCalendar: CalendarComponent; myCalendar.fullCalendar('prev');

@ViewChild('calendar', { read: ElementRef }) myCalendar: ElementRef; myCalendar.nativeElement.fullCalendar('prev');

Cannot read property 'fullCalendar' of undefined

any help appreciated.