title: Fill data into expandable rows of table with depth=3
body: <p>I'm searching for a solution for a seemingly easy task, which I simply can't solve:</p>
  <p>I have a nested data structure of Years -&gt; Months -&gt; Events, which I'm trying to fill into a table with expandable rows, aka the parent-row is the aggregation of the child row.</p>
  <p>The problem arises of the amount of depthness I need being three: I simply can't find any way to itereate through the table at the third level, as I can't use div, and can't use a nested tr or tbody as well. Solution is bound to bootstrap 3 and angularjs 1.5.</p>
  <p>Hopefully someone has a good idea.</p>
  <p>Table</p>
  <pre><code>&lt;table class=&quot;table&quot;&gt;
    &lt;thead&gt;
    &lt;tr&gt;
       &lt;th&gt;&lt;/th&gt;
       &lt;th&gt;{{I18n.i18n('label.period')}}&lt;/th&gt;
       &lt;th&gt;{{I18n.i18n('label.failure-duration')}}&lt;/th&gt;
       &lt;th&gt;{{I18n.i18n('label.availability')}}&lt;/th&gt;
    &lt;/tr&gt;
    &lt;/thead&gt;
  
    &lt;tbody ng-repeat=&quot;year in data&quot;&gt;
       &lt;tr data-toggle=&quot;collapse&quot; data-target=&quot;{{'.a'+year.period}}&quot;&gt;
          &lt;td&gt;&lt;div&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;
          &lt;td&gt;{{year.period}}&lt;/td&gt;
          &lt;td&gt;{{year.duration}}&lt;/td&gt;
          &lt;td&gt;{{year.availability}}&lt;/td&gt;
       &lt;/tr&gt;
  
       &lt;tr ng-repeat=&quot;month in year.months&quot; class=&quot;{{'collapse a' + year.period}}&quot; data-toggle=&quot;collapse&quot; data-target=&quot;{{'.'+month.period+year.period}}&quot;&gt;
          &lt;td&gt;&lt;div&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;
          &lt;td&gt;{{month.period}}&lt;/td&gt;
          &lt;td&gt;{{month.duration}}&lt;/td&gt;
          &lt;td&gt;{{month.availability}}&lt;/td&gt;
       &lt;/tr&gt;
  
       &lt;!-- Iterating here obiously doesn't work because of variable scope and position in the table--&gt;
       &lt;tr ng-repeat=&quot;event in month&quot; class=&quot;{{'collapse a' + +month.period+year.period}}&quot;&gt;
          &lt;td&gt;&lt;/td&gt;
          &lt;td&gt;{{event.period}}&lt;/td&gt;
          &lt;td&gt;{{event.duration}}&lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
       &lt;/tr&gt;
  
  
    &lt;/tbody&gt;
  </code></pre>
     
  <p>Examplary data:</p>
  <pre><code>{
              period : '2021',
              duration : '647 Minutes',
              availability : '99,78978%',
              months : [
                 {
                    period : 'January',
                    duration : '132 Minutes',
                    availability : '99,99458%',
                    events : [
                       {
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },
                    ]
                 },{
                    period : 'February',
                    duration : '132 Minutes',
                    availability : '99,99458%',
                    events : [
                       {
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },
                    ]
                 },{
                    period : 'March',
                    duration : '132 Minutes',
                    availability : '99,99458%',
                    events : [
                       {
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },
                    ]
                 },{
                    period : 'April',
                    duration : '132 Minutes',
                    availability : '99,99458%',
                    events : [
                       {
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },
                    ]
                 },{
                    period : 'May',
                    duration : '132 Minutes',
                    availability : '99,99458%',
                    events : [
                       {
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },
                    ]
                 },{
                    period : 'June',
                    duration : '132 Minutes',
                    availability : '99,99458%',
                    events : [
                       {
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },
                    ]
                 },{
                    period : 'July',
                    duration : '132 Minutes',
                    availability : '99,99458%',
                    events : [
                       {
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },
                    ]
                 },{
                    period : 'August',
                    duration : '132 Minutes',
                    availability : '99,99458%',
                    events : [
                       {
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },
                    ]
                 },{
                    period : 'September',
                    duration : '132 Minutes',
                    availability : '99,99458%',
                    events : [
                       {
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },
                    ]
                 },{
                    period : 'October',
                    duration : '132 Minutes',
                    availability : '99,99458%',
                    events : [
                       {
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },
                    ]
                 },{
                    period : 'November',
                    duration : '132 Minutes',
                    availability : '99,99458%',
                    events : [
                       {
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },
                    ]
                 },{
                    period : 'December',
                    duration : '132 Minutes',
                    availability : '99,99458%',
                    events : [
                       {
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },{
                          period : '12.01. 12:34 - 12.01. 12:46',
                          duration : '24 Minutes',
                       },
                    ]
                 },
              ]
           }
  </code></pre>