title: Calling directive function of multiple instance in forEach loop
body: <p>I have created one directive and one method written inside it.</p>
  
  <pre><code>&lt;div class="col-sm-12" style="padding:0px; margin-bottom:5px; border-
  bottom:dashed 1px silver;"
       ng-repeat="companyInfo in companies"&gt;
      &lt;at-grosspay  savepayrolldata="CallToSavePayrollData"
                    companyinfoid="companyInfo.QuerystringID"&gt;
      &lt;/at-grosspay&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The multiple instances are created on page. 
  Now, the controller side I want to call the each directive method from forEach Loop.</p>
  
  <p>at-grosspay directive has a method and that I want to call. </p>
  
  <pre><code>angular.forEach($scope.companies, function (companyInfo, key)
  {
     &lt;Directive&gt;.DirectiveMethod();
  });
  </code></pre>
  
  <p>How can I do it?</p>