# How to auto refresh data in ionic 3 and angular 4?

**URL:** <https://forum.ionicframework.com/t/how-to-auto-refresh-data-in-ionic-3-and-angular-4/121582>\
**Category:** ionic-v3\
**Created:** [February 15, 2018, 12:33pm UTC](https://forum.ionicframework.com/t/how-to-auto-refresh-data-in-ionic-3-and-angular-4/121582 "2018-02-15T12:33:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sudhanmanoharan](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@Sudhanmanoharan](https://forum.ionicframework.com/u/Sudhanmanoharan)\
**Post date:** [February 15, 2018, 12:33pm UTC](https://forum.ionicframework.com/t/how-to-auto-refresh-data-in-ionic-3-and-angular-4/121582/1 "2018-02-15T12:33:01Z")

</div>

Hai, I need help how to auto refresh data from the server in ionic 3 and angular 4?  
I get data from the server but I need to update for every 30 seconds once.How can I archive this?

---

<div class="post-metadata">

**Author:** ![ZeroTerminated](https://avatars.discourse-cdn.com/v4/letter/z/e480ec/32.png) [@ZeroTerminated](https://forum.ionicframework.com/u/ZeroTerminated)\
**Post date:** [February 15, 2018, 12:42pm UTC](https://forum.ionicframework.com/t/how-to-auto-refresh-data-in-ionic-3-and-angular-4/121582/2 "2018-02-15T12:42:37Z")

</div>

try setTimeout(), sample at: [https://forum.ionicframework.com/t/ionic-3-timeout-function/92284](https://forum.ionicframework.com/t/ionic-3-timeout-function/92284)

---

<div class="post-metadata">

**Author:** ![Nexi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nexi/32/117290_2.png) [@Nexi](https://forum.ionicframework.com/u/Nexi)\
**Post date:** [February 15, 2018, 12:59pm UTC](https://forum.ionicframework.com/t/how-to-auto-refresh-data-in-ionic-3-and-angular-4/121582/3 "2018-02-15T12:59:53Z")

</div>

As you want to repeat it, I recommend setInterval:

> **[WindowTimers.setInterval()](https://developer.mozilla.org/de/docs/Web/API/WindowTimers/setInterval)**
>
> Passing additional parameters to the function in the first syntax does not work in Internet Explorer 9 and earlier. To enable this functionality on that browser, use a polyfill (see the Callback arguments section).

---

<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:50pm UTC](https://forum.ionicframework.com/t/how-to-auto-refresh-data-in-ionic-3-and-angular-4/121582/4 "2021-07-19T21:50:28Z")

</div>

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


