# Add items from diferent pages to one specific page

**URL:** <https://forum.ionicframework.com/t/add-items-from-diferent-pages-to-one-specific-page/93471>\
**Category:** ionic-v3\
**Created:** [June 8, 2017, 12:23pm UTC](https://forum.ionicframework.com/t/add-items-from-diferent-pages-to-one-specific-page/93471 "2017-06-08T12:23:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mensur14](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Mensur14](https://forum.ionicframework.com/u/Mensur14)\
**Post date:** [June 8, 2017, 12:23pm UTC](https://forum.ionicframework.com/t/add-items-from-diferent-pages-to-one-specific-page/93471/1 "2017-06-08T12:23:08Z")

</div>

(bad english maybe avarage)  
I created restourant app and i have all this different categories and items, and like i said in the title i want to click on all this random items (like you ordering stuff) and push it to specific page - like a shopping cart

---

<div class="post-metadata">

**Author:** ![guadyass](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/guadyass/32/110368_2.png) [@guadyass](https://forum.ionicframework.com/u/guadyass)\
**Post date:** [June 8, 2017, 1:48pm UTC](https://forum.ionicframework.com/t/add-items-from-diferent-pages-to-one-specific-page/93471/2 "2017-06-08T13:48:16Z")

</div>

you can use localStorage like a small database in your application , on every page you can add or get your list of object ,

insert your array

`localStorage.setItem('ListObject',array);`

get your array

```auto

localStorage.getItem('ListObject');

```

PS: if you wanna add an object to your array you must get your array “ListObject” and add an object to this list before set list

---

<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:** [June 8, 2017, 8:08pm UTC](https://forum.ionicframework.com/t/add-items-from-diferent-pages-to-one-specific-page/93471/3 "2017-06-08T20:08:47Z")

</div>

I think localStorage is not a great choice here. I would instead use either a shared service provider or `NavParams`.

---

<div class="post-metadata">

**Author:** ![Mensur14](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Mensur14](https://forum.ionicframework.com/u/Mensur14)\
**Post date:** [June 9, 2017, 1:39pm UTC](https://forum.ionicframework.com/t/add-items-from-diferent-pages-to-one-specific-page/93471/4 "2017-06-09T13:39:55Z")

</div>

i used navParams (i don’t know if i used it correctly) and it works when i console log it  
**like this - \> console.log(this.navParams.get(‘title’));**  
but when i want to display it on the page it doesent work - or maybe i do something wrong

---

<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:** [June 9, 2017, 7:20pm UTC](https://forum.ionicframework.com/t/add-items-from-diferent-pages-to-one-specific-page/93471/5 "2017-06-09T19:20:45Z")

</div>

I wish we could get a moratorium on the phrase “it doesn’t work”. It conveys virtually zero useful information.

- I used this code
- I expected X to happen
- Y actually happened
