title: Angular doesn't bind data from controller with bindToController
body: <p>I've been struggling for quite some time with this issue. AngularJS just doesn't bind data if I simply bind it to controller context.
  And if I try to change it to simple binding via $scope — everything works. </p>
  
  <p>The trick is with the line that assigns function loadComments — strangely, if I remove it, everything works.</p>
  
  <p>The version of Angular is 1.4.0-beta.5</p>
  
  <p>Here is my code:</p>
  
  <pre><code>angular.module('my-app')
  .directive 'myComments',
    -&gt;
    directive = 
      restrict: 'E'
      scope: true
      controller: 'CommentsController'
      controllerAs: 'ctrl'
      bindToController: true
      templateUrl: 'comments.html'
      replace: true
  
  .controller 'CommentsController', () -&gt;
    this.name = 'Comments'
  
    this.loadComments = -&gt;
  
  // The template is here
  section.comments
    header ng-bind='ctrl.name'
  </code></pre>
  
  <p>Thanks!</p>