title: Pass parameters to Angular's ng-include
body: <p>I need two tables on my page and a lot of elements inside tables.</p>
  
  <p>I created file AccountItem.html:</p>
  
  <pre><code>&lt;div data-as-sortable-item-handle&gt;
  &lt;table&gt;
      &lt;tr&gt;
          &lt;td class="draggable-index-field"&gt;
              {{$index + 1}}
          &lt;/td&gt;
          &lt;td class="draggable-name-field"&gt;
              {{item.accountName}}
          &lt;/td&gt;
          &lt;td class="draggable-enabled-field"&gt;
              &lt;input id="enabled-{{$index}}" type="checkbox" name="accounts[]" ng-checked="item.enabled" disabled/&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p></p>
  
  <p>This file is related to each row in table.</p>
  
  <p>Also I created file for table SortAccountList.html:</p>
  
  <pre><code>&lt;div class="panel panel-info"&gt;
  &lt;div class="panel-heading"&gt;
      &lt;h3 class="panel-title ng-binding"&gt;{{title}}&lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="panel-body"&gt;
      &lt;table&gt;
          &lt;td class="draggable-index-field"&gt;
              #
          &lt;/td&gt;
          &lt;td class="draggable-name-field"&gt;
              Account Name
          &lt;/td&gt;
          &lt;td class="draggable-enabled-field"&gt;
              Enabled
          &lt;/td&gt;
      &lt;/table&gt;
      &lt;ul data-as-sortable = "sortableOptions" data-ng-model="accountList" class="draggable-area"&gt;
          &lt;li ng-repeat="item in accountList" data-as-sortable-item ng-include="'AccountItem.html'"&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>I include this file with directive in my main file:</p>
  
  <pre><code>&lt;div ng-include="'SortAccountList.html'" onload="title = 'Sorted Account List'; accountList = sortedAccounts"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>When I load this page in browser it shows me table, title on it which I pass with "title" parameter. But it does not want to show rows in the table. However, if I change <strong><em>accountList</em></strong> to <strong><em>sortedAccounts</em></strong> which is a List in my controller it shows all rows. 
  I can not use sortedAccounts because I have second table where I want to pass different accounts from my controller.</p>
  
  <p>So, my question, how to pass properly this parameter? Thank you!</p>