# Should stuff like lists be on components or directly in a page?

**URL:** <https://forum.ionicframework.com/t/should-stuff-like-lists-be-on-components-or-directly-in-a-page/134189>\
**Category:** ionic-v3\
**Created:** [July 2, 2018, 7:49pm UTC](https://forum.ionicframework.com/t/should-stuff-like-lists-be-on-components-or-directly-in-a-page/134189 "2018-07-02T19:49:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyrax80](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@Kyrax80](https://forum.ionicframework.com/u/Kyrax80)\
**Post date:** [July 2, 2018, 7:49pm UTC](https://forum.ionicframework.com/t/should-stuff-like-lists-be-on-components-or-directly-in-a-page/134189/1 "2018-07-02T19:49:19Z")

</div>

Also if the answer is in a component, where would I put the code needed to reorder a list for example, in the component code or page code?

Thanks

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [July 2, 2018, 8:13pm UTC](https://forum.ionicframework.com/t/should-stuff-like-lists-be-on-components-or-directly-in-a-page/134189/2 "2018-07-02T20:13:07Z")

</div>

I would say the answer depends on whether you are going to be able to reuse this “stuff” in more than one place. If so, then a component probably makes more sense. If you do go with the component route, all the code for doing anything the component needs to care about has to be in the component; otherwise it’s not truly self-contained.

---

<div class="post-metadata">

**Author:** ![Kyrax80](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@Kyrax80](https://forum.ionicframework.com/u/Kyrax80)\
**Post date:** [July 2, 2018, 9:25pm UTC](https://forum.ionicframework.com/t/should-stuff-like-lists-be-on-components-or-directly-in-a-page/134189/3 "2018-07-02T21:25:40Z")

</div>

And if I had a list that I want to be able to reorder and that list is in a component.

Where would I place the code, on page or on component?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:30pm UTC](https://forum.ionicframework.com/t/should-stuff-like-lists-be-on-components-or-directly-in-a-page/134189/4 "2021-07-19T21:30:35Z")

</div>

Closed on July 19, 2021, 9:30pm UTC


