title: Passing data from controller to directive
body: <p>I 'm trying to handle data that is coming from my database in a directive , however these data are being pulled by a controller and being assigned to scope like this:</p>
  
  <p>Calendar Controller:</p>
  
  <pre><code>'use strict';
  var CalendarController = ['$scope', 'EventModel', function(scope, EventModel) {
  
      scope.retrieve = (function() {
          EventModel.Model.find()
              .then(function(result) {
                  scope.events = result;
  
              }, function() {
  
              });
      }());
  
  }];
  
  
  adminApp.controller('CalendarController', CalendarController);
  </code></pre>
  
  <p>Calendar Directive:</p>
  
  <pre><code>'use strict';
  var calendarDirective = [function($scope) {
  
      var Calendar = {
          init: function(events) {
              console.log(events);
          }
      };
  
      return {
          link: function(scope) {
              Calendar.init(scope.events);
          }
      };
  }];
  
  adminApp.directive('calendarDirective', calendarDirective);
  </code></pre>
  
  <p>But the data is undefined in the directive, and in the controller the data appears to be ok.</p>
  
  <p>Thanks!</p>