You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Awesome job on this. I'm new the Angular but I believe I've poked around enough to get the ajax request working that'll retrieve events from a mysql database via php script and return the events in json format. I'd appreciate any help.
The text was updated successfully, but these errors were encountered:
Retrieve data from your server for events to be displayed in the calendar. Then w/in your controller for the calendar, loop through the results returned from your database, and build out an array of event objects formatted as follows:
var events = [],
i = 0;
for (i = 0; 8 < YourData.length; i += 1) {
events.push({
title: YourData[i].Title,
startTime: YourData[i].StartDateTime,
endTime: YourData[i].EndDateTime,
allDay: YourData[i].AllDay
});
}
$scope.eventSource = events;
****** NOTES: the allDay property is a boolean value. Also, add any additional properties you want to each event object in the events array. In my own implementation, I add an "id" property, representing the unique identifier from the database for a given event, to enable me to link through to more details for that event after selecting the event.
Awesome job on this. I'm new the Angular but I believe I've poked around enough to get the ajax request working that'll retrieve events from a mysql database via php script and return the events in json format. I'd appreciate any help.
The text was updated successfully, but these errors were encountered: