title: AngularJS directive transclude part binding
body: <p>I'd like to use a directive, transclude content, and call directive's controller method within the transcluded part:</p>
  
  <pre><code>&lt;mydirective&gt;
    &lt;div ng-click='foo()'&gt;
      click me
    &lt;/div&gt;
  &lt;/mydirective&gt;
  
  
  app.directive "mydirective", -&gt;
  
    return {
      restrict:  'EACM',
      transclude: true
      template: "&lt;div ng-transclude&gt;&lt;/div&gt;"
      scope: { } #required: I use two way binding on some variable, but it's not the question here
  
      controller: [ '$scope', ($scope)-&gt;
        $scope.foo = -&gt; console.log('foo')
      ]
    }
  </code></pre>
  
  <p><a href="http://plnkr.co/edit/Rj1Gd3YJZuAn5UGelYYw?p=preview">plunkr here.</a></p>
  
  <p>How can I do that please?</p>