0
I’m using fullcalendar, nodejs and Mongoose. I’ve already managed to generate the json file. But when passing the path in the js of fullcalendar, I cannot recover the events.
I created a json test file and called it as follows:
script(type='text/javascript').
$(document).ready(function() {
$('.calendar').fullCalendar( {
header: {
right: 'prev,next today,month,agendaWeek,agendaDay'
},
aspectRatio: 2,
events: "/calendars.json"
} );
});
But it doesn’t work. I wanted to know how I can call the info of Mongoose and display in the calendar.
Welcome to Sopt, Nodejs. You said your code doesn’t work. But, what error is returned? Edith your question and add this and other information that you find relevant to solving the problem. I suggest reading on [tour] and [Ask].
– emanuelsn
already solved. Thank you!
– Nodejs
What should that way be? That way
calendarjson
would becalendar.json
? usingevents: "/calendars/calendarjson",
as path to.json file– Douglas Emerick