search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Directive not working

Related article: AngularJS Event Calendar (Open-Source)
Asked by Anonymous
5 years ago.

i added the Angular js scripts & daypilot and added a Directive to output the calendar, but can't see the calendar. What could be the problem?

Answer posted by Dan Letecky [DayPilot]
5 years ago.

If you don't see anything in the JavaScript console I recommend starting with the following minimum code:

<!DOCTYPE html>
        <meta charset="UTF-8">
        <title>AngularJS Event Calendar</title>
        <script src=""></script>
        <script src=""></script>
        <div ng-app="main" ng-controller="CalendarController" >
          <daypilot-calendar id="calendar" daypilot-config="calendarConfig" daypilot-events="events" ></daypilot-calendar> 
            var app = angular.module('main', ['daypilot']).controller('CalendarController', ['$scope', '$timeout', '$http', function($scope, $timeout, $http) {
              $scope.calendarConfig = {
                  viewType: "Week",
                  startDate: new DayPilot.Date()
              $ = [];
This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.