# Ionic - List update reflect in UI

**URL:** <https://forum.ionicframework.com/t/ionic-list-update-reflect-in-ui/97661>\
**Category:** ionic-v3\
**Created:** [July 11, 2017, 12:02am UTC](https://forum.ionicframework.com/t/ionic-list-update-reflect-in-ui/97661 "2017-07-11T00:02:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcosmachado](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@marcosmachado](https://forum.ionicframework.com/u/marcosmachado)\
**Post date:** [July 11, 2017, 12:02am UTC](https://forum.ionicframework.com/t/ionic-list-update-reflect-in-ui/97661/1 "2017-07-11T00:02:36Z")

</div>

Hi!

I have been working on app and a got some problems… the biggest is when I run the app the data isn’t loaded from the server, and I show a blank list to the user. When I get the data, I can’t update the list.

My provider has the code:

```auto
requestItems() {
  var sr = new Server();
           ......
           this.http.post(sr.url()+'/get',datapost).map(res => res.json()).subscribe(data => {
           ..........
}

```

but before the request fill the data, in home.ts the code is:

```auto
this.MyProvider.requestItems();
this.items = this.MyProvider.getItems();

```

and the code above get null items…

is there a way to wait for the items? (a subscribe??)

---

<div class="post-metadata">

**Author:** ![gedarufi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gedarufi/32/109206_2.png) [@gedarufi](https://forum.ionicframework.com/u/gedarufi)\
**Post date:** [July 11, 2017, 1:02am UTC](https://forum.ionicframework.com/t/ionic-list-update-reflect-in-ui/97661/2 "2017-07-11T01:02:25Z")

</div>

Please put the entire code for MyProvider.

---

<div class="post-metadata">

**Author:** ![marcosmachado](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@marcosmachado](https://forum.ionicframework.com/u/marcosmachado)\
**Post date:** [July 23, 2017, 9:54pm UTC](https://forum.ionicframework.com/t/ionic-list-update-reflect-in-ui/97661/3 "2017-07-23T21:54:42Z")

</div>

Hi @gedarufi!! I solved using Subscribe. Thank you
