How i can refresh my view each minute or second

Hi guys, is my first app with ionic 2 and i have this code
doRefresh(refresher) {
console.log(‘Begin async operation’, refresher);

setTimeout(() => {
  console.log('Async operation has ended');
  refresher.complete();
}, 2000);

}
but i need too refresh my view for update data.
thanks! :smiley:

Take some time and look at Observables in Angular 2 and how they work. They are designed to do what you need to do.

Chris

3 Likes

Listen to the first response and ignore the second one.

2 Likes