Access named controller's method from directive's template
<p>I'm trying to call some methods from parent controller defined with <code>Controller as</code> syntax from directive's template but I can't do it with isolated scope. I could write my directive without isolated scope but in this case I can't reuse it.</p>

<p>Simple example:</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>angular.module('app', [])
    .controller('myController', function() {
        var result_el = document.getElementById("log");
        this.log = function(text) {
            var p = document.createElement("p");
            p.innerHTML = text;
            result_el.appendChild(p);
        }
    })
    .directive('myDirective', function() {
        return {
            restrict: 'E',
            scope: {},
            template: '&lt;button ng-click="mCtrl.log(123)"&gt;Click me!&lt;/button&gt;'
        }
    });</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"&gt;&lt;/script&gt;

&lt;div ng-app="app" ng-controller="myController as mCtrl"&gt;
    &lt;my-directive&gt;&lt;/my-directive&gt;
&lt;/div&gt;
&lt;div id="log"&gt;&lt;/div&gt;</code></pre>
</div>
</div>
</p>

<p>Is it possible to call parent controller's functions from directive's template?</p>