title: Nested ng-repeat
body: <p>I have some dummy XML file:</p>
  
  <pre><code>&lt;Week number="2013-W45"&gt;
      &lt;Day dow="1" templateDay="Monday"&gt;
          &lt;Job name="wake up" &gt;
              &lt;Job name="get dressed" &gt;
                  &lt;Job name="prepare breakfast" &gt;
                      &lt;Job name="eat breakfast" &gt; &lt;/Job&gt;
                  &lt;/Job&gt;
              &lt;/Job&gt;
          &lt;/Job&gt;
          &lt;Job name="work 9-5" &gt;
          &lt;/Job&gt;
      &lt;/Day&gt;
      &lt;Day dow="2" templateDay="Tuesday"   &gt;
          &lt;Job name="wake up" &gt;
              &lt;Job name="get dressed" &gt;
                  &lt;Job name="prepare breakfast" &gt;
                      &lt;Job name="eat breakfast" &gt; &lt;/Job&gt;
                  &lt;/Job&gt;
              &lt;/Job&gt;
          &lt;/Job&gt;
          &lt;Job name="work 9-5" &gt;
          &lt;/Job&gt;
          &lt;Job name="football" &gt;
          &lt;/Job&gt;
      &lt;/Day&gt;
      &lt;Day dow="3"   templateDay="Wednesday" &gt;
          &lt;Job name="wake up" &gt;
              &lt;Job name="get dressed" &gt;
                  &lt;Job name="prepare breakfast" &gt;
                      &lt;Job name="eat breakfast" &gt; &lt;/Job&gt;
                  &lt;/Job&gt;
              &lt;/Job&gt;
          &lt;/Job&gt;
          &lt;Job name="work 9-5" &gt;
          &lt;/Job&gt;
      &lt;/Day&gt;
      &lt;Day dow="4"  templateDay="Thursday"  &gt;
          &lt;Job name="wake up" &gt;
              &lt;Job name="get dressed" &gt;
                  &lt;Job name="prepare breakfast" &gt;
                      &lt;Job name="eat breakfast" &gt; &lt;/Job&gt;
                  &lt;/Job&gt;
              &lt;/Job&gt;
          &lt;/Job&gt;
          &lt;Job name="work 9-5" &gt;
          &lt;/Job&gt;
          &lt;Job name="football" &gt;
          &lt;/Job&gt;
      &lt;/Day&gt;
      &lt;Day dow="5" templateDay="Friday" &gt;
          &lt;Job name="go to pub" &gt;
          &lt;/Job&gt;
      &lt;/Day&gt;
      &lt;Day dow="6" templateDay="Saturday"  &gt;
          &lt;Job name="work 9-5" &gt;
          &lt;/Job&gt;
      &lt;/Day&gt;
      &lt;Day dow="7" templateDay="Sunday" &gt;
          &lt;!-- nothing to do on sunday --&gt;
      &lt;/Day&gt;
  &lt;/Week&gt;
  </code></pre>
  
  <p>Using this library <a href="http://code.google.com/p/x2js/">http://code.google.com/p/x2js/</a> I convert it to json, into variable <code>myData</code></p>
  
  <pre><code> {
      "Week" : {
          "Day" : [{
                  "Job" : [{
                          "Job" : {
                              "Job" : {
                                  "Job" : {
                                      "_name" : "eat breakfast"
                                  },
                                  "_name" : "prepare breakfast"
                              },
                              "_name" : "get dressed"
                          },
                          "_name" : "wake up"
                      }, {
                          "_name" : "work 9-5"
                      }
                  ],
                  "_dow" : "1",
                  "_templateDay" : "Monday"
              }, {
                  "Job" : [{
                          "Job" : {
                              "Job" : {
                                  "Job" : {
                                      "_name" : "eat breakfast"
                                  },
                                  "_name" : "prepare breakfast"
                              },
                              "_name" : "get dressed"
                          },
                          "_name" : "wake up"
                      }, {
                          "_name" : "work 9-5"
                      }, {
                          "_name" : "football"
                      }
                  ],
                  "_dow" : "2",
                  "_templateDay" : "Tuesday"
              }, {
                  "Job" : [{
                          "Job" : {
                              "Job" : {
                                  "Job" : {
                                      "_name" : "eat breakfast"
                                  },
                                  "_name" : "prepare breakfast"
                              },
                              "_name" : "get dressed"
                          },
                          "_name" : "wake up"
                      }, {
                          "_name" : "work 9-5"
                      }
                  ],
                  "_dow" : "3",
                  "_templateDay" : "Wednesday"
              }, {
                  "Job" : [{
                          "Job" : {
                              "Job" : {
                                  "Job" : {
                                      "_name" : "eat breakfast"
                                  },
                                  "_name" : "prepare breakfast"
                              },
                              "_name" : "get dressed"
                          },
                          "_name" : "wake up"
                      }, {
                          "_name" : "work 9-5"
                      }, {
                          "_name" : "football"
                      }
                  ],
                  "_dow" : "4",
                  "_templateDay" : "Thursday"
              }, {
                  "Job" : {
                      "_name" : "go to pub"
                  },
                  "_dow" : "5",
                  "_templateDay" : "Friday"
              }, {
                  "Job" : {
                      "_name" : "work 9-5"
                  },
                  "_dow" : "6",
                  "_templateDay" : "Saturday"
              }, {
                  "_dow" : "7",
                  "_templateDay" : "Sunday"
              }
          ],
          "_number" : "2013-W45"
      }
  }
  </code></pre>
  
  <p>Day can have any number of Jobs, Jobs can be nested and contain any number of other Jobs.</p>
  
  <p>Now using this code</p>
  
  <pre><code>&lt;p ng-repeat="day in myData.Week.Day"&gt;
     {{day._dow}} - {{day._templateDay}}
  &lt;/p&gt;
  </code></pre>
  
  <p>I can list the days, that works. I would expect that with following code</p>
  
  <pre><code>&lt;p ng-repeat="day in myData.Week.Day"&gt;
      {{day._dow}} - {{day._templateDay}}
  
      &lt;span ng-repeat="job in day.Job"&gt;
          {{job._name}}
      &lt;span/&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>I can list days and top level Jobs for that day, but it doesn't work. (To list the nested Jobs would be next task, not asking about that now). </p>
  
  <p>So, how to list at least the top-level Jobs? Also in the json format, I see some Jobs are <code>Objects</code> and some are <code>Arrays</code>. How to handle both situations?</p>
  
  <p>PS.: using angular 1.2.0-rc.3</p>