如何在Angular JS中显示日历中的事件?

时间:2015-10-08 09:57:11

标签: angularjs

我使用calendar bootstap

如何在AJAX日历中显示所有活动? 我想我需要从响应AJAX填充数组events

我的PHP:

     foreach($calendar as $val){
                    $this->outputData["calendar"][] = array(
                        "title" => $val->DetailToUsersName,
                        "type" => 'info',
                        "startsAt" => "Sat Jun 01 2015 01:00:00 GMT+0500",
                        "endsAt" => "Sat Jun 01 2016 01:00:00 GMT+0500",
                        "resizable" => true,
                        "incrementsBadgeTotal" => true,
                        "recursOn" => 'year'
                    );
                }

echo json_encode($this->outputData);

1 个答案:

答案 0 :(得分:0)

是的,您需要将AJAX响应转换为bootstrap calendar docs中定义的格式:

UIAlertView