Thanks for your update.
Yes, it is possible to load an appointments using datamanager only if an appointments are not retrieved from the data base as shown below. Appointment click can be redirected to an angular controller function by defining the e-appointmentclick event function within the scope as shown below.
<Code>
var data = [
{ "Id": 1, "Subject": "Meeting", "StartTime": new Date(2014, 4, 1, 4), "EndTime": new Date(2014, 4, 1, 6), "AllDay": false, "Recurrence": false },
{ "Id": 2, "Subject": "Testing", "StartTime": new Date(2014, 4, 2, 4), "EndTime": new Date(2014, 4, 2, 6), "AllDay": false, "Recurrence": false },
{ "Id": 3, "Subject": "Review", "StartTime": new Date(2014, 4, 2, 2), "EndTime": new Date(2014, 4, 2, 3), "AllDay": false, "Recurrence": false },
{ "Id": 4, "Subject": "Conference", "StartTime": new Date(2014, 4, 3, 4), "EndTime": new Date(2014, 4, 3, 6), "AllDay": false, "Recurrence": false },
{ "Id": 5, "Subject": "Deployment", "StartTime": new Date(2014, 4, 3, 1), "EndTime": new Date(2014, 4, 3, 3), "AllDay": false, "Recurrence": false }
];
angular.module('syncApp', ['ejangular'])
.controller('ScheduleCtrl', function ($scope) {
$scope.appointments = data;
$scope.setDate = new Date(2014, 4, 5);
$scope.drpvalue = "week";
$scope.OnAppointmentClick= function(args) { // this function will be called when the app is clicked
// Here you can use ajax post to call the controller function
//args.appointment - Clicked app detail is retrieved
//args.type - Event name
}
});
</Code>
Kindly visit the below AngularJS Scheduler sample link.
Regards,
Karthigeyan