Praveen Vishnu
Praveen Vishnu

Reputation: 443

Reload Page Only Once In IONIC 3

I need to reload my page only once Here is what i tried so far...

in Constructor of traget Page I wrote This Line

`storage.get('reload_flag').then((val) => {
        if (!val) {
            // do Nothing
        }
    else{
        location.reload();
    }});`

But the Results are not as expected (the Constructor part is not working).

Upvotes: 1

Views: 1371

Answers (1)

Kishan Oza
Kishan Oza

Reputation: 1735

try this :

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

Upvotes: 1

Related Questions