title: adding new attributes from decorator
body: <p>I'm trying to pass parameters between my father and template driver of a directive, but this appears to be malfunctioning</p>
  
  <p>the method in the controller is</p>
  
  <pre><code>vm.activoHora = function(eventos, hora, dia) {
  
    var a = eventos;
    var b = hora;
    var c = moment(dia).format('MM/DD/YYYY');
  
  
    angular.forEach(eventos, function(value, key) {
  
      var fechaEv = moment(value.startsAt).format('MM/DD/YYYY');
      if (fechaEv === c)
        var horaEv = moment(value.startsAt).format('HH:mm');
  
      if (horaEv === b)
        $scope.valor = true;
      return $scope.valor;
    });
  
    return ({
      ' btn-danger disabled': $scope.valor
    });
  
  }
  </code></pre>
  
  <p>this should evaluate the day and return an object css to disable the drawer,<code>evento</code> used to communicate with the template</p>
  
  <pre><code>&lt;mwl-calendar 
            evento="vm.activohora(event,hora,dia)" 
            events="vm.events" 
     ...........            
    &lt;/mwl-calendar&gt;
  </code></pre>
  
  <p>and the template evaluated with ng-class</p>
  
  <pre><code> &lt;li   class="list-group-item col-md-12 " ng-class="vm.evento(vm.view.events,h_m,day)" ng-repeat="h_m in [] | tiempoTabla:8:16:15" style="padding: 1px !important"&gt;
        &lt;p  class="hora text-center" style=" margin: inherit" ng-click="vm.clic(day.date,h_m)"&gt;{{h_m}}&lt;/p&gt;
   &lt;/li&gt;
  </code></pre>
  
  <p>Here is the code where the problem occurred  <a href="http://plnkr.co/edit/XihZabCHjLHtPiCQnbUi?p=preview" rel="nofollow">http://plnkr.co/edit/XihZabCHjLHtPiCQnbUi?p=preview</a></p>