Ionic Refresh Current Page


#22

Don’t do reload(), it messes things up down the road like sqlite plugin and possibly other internal states outside the webview

If there is a problem with change detection by angular (which may also indicate a design issue), wrap your stuff in a zone so angular knows what to monitor.

Dont go calling internal onWillEnter etc.


#23

somehow doesn’t seem to work, this was my first attempt too…


#24

Someone buy Beer For @dupinder … works like champ


#25

Pull-to-Refresh

Guys, checkout this helpful video I found which shows how to do pull-to-refresh a page in ionic application: https://youtu.be/LBZQ-jHuQq0

Auto-Refresh on Event Triggering

Add the following code by @dupinder:

this.navCtrl.setRoot(this.navCtrl.getActive().component);


Pipe doesn't work on home page
#27

HugoPetla, maybe look at zones…
I had same issue with bluetooth app specifically.


#28

Worked like a charm for me :smiley:


#29

Do you need a beer? :*


#30

this.navCtrl.setRoot(this.navCtrl.getActive().component); is work fine in android but not working on IOS for me. when we use for IOS app is going to Crashed .
Please Help


#31

Its dirty hack but it does what I need (to reset a file input which honestly also wasn’t 100% member of the Angular loop). Thank you.


#32
import {Content} from 'ionic-angular';
@Component({
.... 
})

export  default class HomePage extends Component{

 @ViewChild(Content) content:Content;


//binded for any event (click,onChange ...)
updateContent(){
   
//recalculate everything on current page; 
  this.content.resize();
}

}


#33

ionViewDidEnter() work for me! Ty


#34

None of the proposed solutions on this thread worked for me, however this stackoverflow answer worked perfectly.


#35

call the method ionViewWillLoad() for refresh the any page and with this your navigation is same as before…


#36

it Works for me too. Thank you!


#37

This refreshes but lost naviagtion