title: Polymer nested dom-repeat
body: <p>I'm having some trouble with Polymer's <code>&lt;dom-repeat&gt;</code>.</p>
  <p>I have parent objects (folders) and child objects (content of the folders). Both are computed from responses to an AJAX request.</p>
  <p>The result should be something like:</p>
  <blockquote>
  <p>Folder</p>
  <ul>
  <li>child</li>
  <li>child</li>
  <li>child</li>
  </ul>
  </blockquote>
  <p>My code:</p>
  <pre><code>&lt;iron-ajax id=&quot;folder&quot; url=&quot;../Folder&quot; auto last-response=&quot;{{folders}}&quot;&gt;&lt;/iron-ajax&gt;
  
  &lt;template is=&quot;dom-repeat&quot; items=&quot;{{folders.items}}&quot; as=&quot;folder&quot;&gt;
    &lt;paper-card  on-tap=&quot;openFolder&quot; object item=&quot;[[folder]]&quot;&gt;
  
      &lt;custom-object value=&quot;[[folder]]&quot; link&gt;&lt;/custom-object&gt;
       
      &lt;iron-ajax id=&quot;folder&quot; url=&quot;..[[folder.id]]/children&quot; auto last-response=&quot;{{children}}&quot;&gt;&lt;/iron-ajax&gt;
  
      &lt;template is=&quot;dom-repeat&quot; items=&quot;{{children.items}}&quot; as=&quot;children&quot;&gt; 
        &lt;custom-object style=&quot;margin-top: 15px&quot; value=&quot;[[children]]&quot; link&gt;&lt;/custom-object&gt;
      &lt;/template&gt;
  
    &lt;/paper-card&gt;
  &lt;/template&gt;
  </code></pre>
  <p>The issue is every folder becomes the child of the last folder and not his own.</p>