Open Tecaa opened 7 years ago
I figure it out that using "bind()" function:
calendarOptions:Object = { fixedWeekCount : false, editable: true, eventLimit: true, defaultView: "agendaWeek", locale: "es", eventClick: this.eventClick.bind(this), //bind do the magic };
not working for me
Thanks @Tecaa, solution works well for this and other callbacks (dayClick, etc.).
I set my calendar options as following in the component ScheduleComponent.ts:
My event click is inside a component ("ScheduleComponent.ts"), it is:
But otherFunction doesn't exist in the callendar scope, it exist in the ScheduleComponent.ts scope, how can I figure it out this problem?