如何转换JSON字段名以匹配Angular(Angular ui日历)中的Fullcalendar对象?

如何转换JSON字段名以匹配Angular(Angular ui日历)中的Fullcalendar对象?,json,angularjs,fullcalendar,Json,Angularjs,Fullcalendar,我使用的是角度,这是一个角度版本的。我的问题是日历本身需要一个“标题”字段,而我必须使用一个预定义的约会模型,该模型没有这样的字段。空JSON模型如下所示: "Appointment": { "resourceType": "Appointment", "identifier": [], "status": {}, "type": {}, "reason": "",

我使用的是角度,这是一个角度版本的。我的问题是日历本身需要一个“标题”字段,而我必须使用一个预定义的约会模型,该模型没有这样的字段。空JSON模型如下所示:

"Appointment": {
            "resourceType": "Appointment",
            "identifier": [],
            "status": {},
            "type": {},
            "reason": "",
            "priority": {},
            "description": "",
            "start": "",
            "end": "",
            "minutesDuration": "",
            "slot": [],
            "comment": "",
            "participant": [{
                    "type": [],
                    "actor": [],
                    "required": [],
                    "status": []
                }] //End of "Appointment"
        }
我正在尝试将“描述”字段名转换为日历选项中的“标题”。目前,没有
eventDataTransform
,基本配置如下:

calendarController.calendarOptions = {
                    calendar: {
                        lang: 'bg',
                        height: 450,
                        editable: true,
                        selectable: true,
                        events: calendarController.searchSet,
                        dataType: "json",
                        eventColor: '#30ACFF',
                        header: {
                            right: 'month agendaWeek agendaDay today prev,next'
                        },
                        timeFormat: 'H(:mm)'
                    }

                };
我在GitHub gist上发现了一个字段名转换的例子,但是它不是符合AngularJS的配置,我的应用程序中没有使用ajax调用,我使用一个服务从服务器获取数据:

calendarController.searchSet = CalendarService.search({type: 'Appointment'});
因此,它不适用于Angular应用程序,用于ui日历配置的Angular文档几乎不存在。因此,基本上,我得到一个事件,显示在日历上,但没有标题。如果您使用带Angular和RESTful服务的Fullcalendar来获取数据并使用正确的字段名填充日历,而不修改约会的预定义模型,那么配置事件字段名转换的正确方法是什么