title: How pass function inside directive to another directive
body: <p>I have two separated directives. If some condition is evaluated to <code>true</code> I have to call second directive inside first.</p>
  
  <pre><code>myDirectives.directive('first', function() {
    return {
      restrict: "E",
      templateUrl: "Views/_first.html",
      require: "ngModel",
      scope: {
        functiontocall: "&amp;",
      }
    }
  });
  </code></pre>
  
  <p>In HTML I'm calling directive as following:</p>
  
  <pre><code>&lt;first ng-model="model.FirstDTO" 
         functiontocall="someFunctionForAsyncData(val)"&gt;&lt;/first&gt;
  </code></pre>
  
  <p>Second directive is same, just with different html and passed function. I've omit additional data passed to directive which is not important for my current problem.</p>
  
  <p>Now, I must call second directive inside first, so I've added additional function which is passed to first directive:</p>
  
  <pre><code>myDirectives.directive('first', function() {
    return {
      restrict: "E",
      templateUrl: "Views/_first.html",
      require: "ngModel",
      scope: {
        functiontocall: "&amp;",
        functionforseconddirective: "&amp;"
      }
    }
  });
  </code></pre>
  
  <p>How can I, inside my first directive make something like this bellow, pass function that is passed to first directive to another one (it's not working now):</p>
  
  <pre><code>&lt;second ng-model="secondModel" 
          secondFn="functionforseconddirective(val)"&gt;&lt;/second&gt;
  </code></pre>
  
  <p>Just to state that this is special case where these two directive are nested, I have couple of places inside code where I call each of them separately, so I would like solution to this specific situation, but not affecting all normal places in code where both of them are working correctly.</p>
  
  <p>Update: jsfiddler: <a href="http://jsfiddle.net/kujg10fL/1/" rel="nofollow noreferrer">http://jsfiddle.net/kujg10fL/1/</a>
  I would like that click on second button display expected msg</p>