title: How to add template in template directive?
body: <p>I have 3 directives with different templates, but in every template I have a table which is almost the same every time, its just with different array. How can I make that that table to be in link or something like that and only to give her what array? </p>
  
  <p>For example, I have that in directive template and the table without checkbox . In every template I have different thing like here I have checkbox in other I have button and.</p>
  
  <pre><code>&lt;table ng-show="myprops.List.length&gt;0" class="table" border="0" cellspacing="0" cellpadding="0"&gt;
                      &lt;tr&gt;
                          &lt;th&gt;Start Date&lt;/th&gt;
                          &lt;th&gt;End Date&lt;/th&gt;
                          &lt;th&gt;Hours&lt;/th&gt;
                          &lt;th&gt;&lt;input type="checkbox" ng-click="toggleAll()" ng-model = "isAllSelected" &gt;&lt;/th&gt;
                      &lt;/tr&gt;
                      &lt;tr ng-repeat="node in myprops.List"&gt;
                          &lt;th&gt;{{node.startDate | date: 'yyyy-MM-dd'}}&lt;/th&gt;
                          &lt;th&gt;{{node.endDate | date: 'yyyy-MM-dd'}}&lt;/th&gt;
                          &lt;th&gt;{{node.workInHours }}&lt;/th&gt;
                          &lt;th&gt;&lt;input type="checkbox" ng-click="onClick()" ng-model="node.selected" &gt;&lt;/th&gt;
                      &lt;/tr&gt;
                  &lt;/table&gt;
                  &lt;button ng-show="myprops.List.length&gt;0"  type="button" class="btn btn-danger" ng-click="deleteItems()"&gt;Remove&lt;/button&gt;
  </code></pre>
  
  <p>Only this is the same with the different array with the same props ..</p>
  
  <pre><code>&lt;tr&gt;
                              &lt;th&gt;Start Date&lt;/th&gt;
                              &lt;th&gt;End Date&lt;/th&gt;
                              &lt;th&gt;Hours&lt;/th&gt;
  ...
   &lt;/tr&gt;
                          &lt;tr ng-repeat="node in myprops.List"&gt;
                              &lt;th&gt;{{node.startDate | date: 'yyyy-MM-dd'}}&lt;/th&gt;
                              &lt;th&gt;{{node.endDate | date: 'yyyy-MM-dd'}}&lt;/th&gt;
                              &lt;th&gt;{{node.workInHours }}&lt;/th&gt;
  </code></pre>