# Using collection-repeat after collection-repeat

**URL:** <https://forum.ionicframework.com/t/using-collection-repeat-after-collection-repeat/21271>\
**Category:** ionic-v1\
**Created:** [April 20, 2015, 1:18am UTC](https://forum.ionicframework.com/t/using-collection-repeat-after-collection-repeat/21271 "2015-04-20T01:18:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zozos](https://avatars.discourse-cdn.com/v4/letter/z/e99b99/32.png) [@Zozos](https://forum.ionicframework.com/u/Zozos)\
**Post date:** [April 20, 2015, 1:18am UTC](https://forum.ionicframework.com/t/using-collection-repeat-after-collection-repeat/21271/1 "2015-04-20T01:18:19Z")

</div>

I am trying to use collection-repeat after a collection-repeat.  
The code looks like this:

```
      %ion-scroll{ direction: "x", "scrollbar-x" => "false" }
        .bar-years
          .row.text-center
            .ion-item{ "collection-repeat" => "season in previousSeasons1" }
              .col.text-center.fancy-font.year-font
                {{season.year}}
        .season-list
          .row.row-center
            .ion-item{ "collection-repeat" => "score in previousSeasons1" }
              .col.no-padding
                %button.button.button-block.five-cent-margin
                  {{score.fifa}}

```

The second collection-repeat doesn’t work and I get the following error in the console:

> Error: undefined is not an object (evaluating ‘node.childNodes’)

Am I doing something wrong here?  
I also see a **collection-repeat-after-container** in the compiled code. Does that have to do with anything?

---

<div class="post-metadata">

**Author:** ![bengtler](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bengtler/32/98565_2.png) [@bengtler](https://forum.ionicframework.com/u/bengtler)\
**Post date:** [April 20, 2015, 6:02am UTC](https://forum.ionicframework.com/t/using-collection-repeat-after-collection-repeat/21271/2 "2015-04-20T06:02:58Z")

</div>

each collection repeat needs its own scrollview to calculate correct scrollbars, heights and widths.

if you put 1 collection repeat in an ion-content it uses automatically this one

if you want to have another independent collection repeat after that one you should wrap both in scroll-containers…

looks like you are wrapping both in one collection.repeat

---

<div class="post-metadata">

**Author:** ![Zozos](https://avatars.discourse-cdn.com/v4/letter/z/e99b99/32.png) [@Zozos](https://forum.ionicframework.com/u/Zozos)\
**Post date:** [April 20, 2015, 9:56pm UTC](https://forum.ionicframework.com/t/using-collection-repeat-after-collection-repeat/21271/3 "2015-04-20T21:56:02Z")

</div>

Thanks for the quick reply.
