title: Using ng-repeat on JSON containing JSON
body: <p>I'm somewhat new to angular, and i'm having problems with my json and ng-repeats. I have a list of "modules" and then lists of "weeks" within them:</p>
  
  <pre><code>{
      "modules":
          {
              "module1":
                  {
                     "title":"name of module1",
                     "description":"description of module1",
                     "weeks":{"week1":{"title":"Week 01"}
                  },
              "module2":
                  {
                     "title":"name of module2",
                     "description":"description of module2",
                     "weeks":{"week2":{"title":"Week 02"},"week3":{"title":"Week 03"}
                  }
          }
  }
  </code></pre>
  
  <p>my final output is a table, and I can get the modules to repeat, but I'm having a hard time understanding what I'm doing wrong by getting the weeks to loop. Here is my template:</p>
  
  <pre><code>&lt;table class="table table-bordered" ng-repeat="module in ocw.modules"&gt;
  &lt;tr&gt;
      &lt;td&gt;
          &lt;h3 class="moduletitle"&gt;{{ module.title }}&lt;/h3&gt;
          &lt;h4&gt;Description&lt;/h4&gt;
          &lt;p&gt;{{ module.description }}&lt;/p&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr ng-repeat="week in ocw.modules.weeks"&gt;
      &lt;td&gt;
          {{ week.title }}
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>So that will output 2 tables, with the proper titles and descriptions, but I can't seem to get the weeks to display correctly. Note that some "modules" have more that one "week". I'm not really sure if the error is in my template or json.  </p>
  
  <p>Thanks for any help. 
  S</p>