You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2020. It is now read-only.
private gotoHomepage(data: any): void {
console.log('gotoHomepage!');
let test:number = 0;
let activePage: ViewController = this.nav.getActive();
if (!activePage || activePage.component['name'] === 'LoginPage') {
test = 1;
this.nav.setRoot(HomePage, data);
}
console.log('Test is now ', test)
}
takes me to my home page and outputs 1 when I run ionic serve
When I run ionic run android I get the output 0 from the generated code:
t.prototype.gotoHomepage = function(t) {
console.log("gotoHomepage!");
var e = 0
, n = this.nav.getActive();
n && "LoginPage" !== n.component.name || (e = 1,
this.nav.setRoot(Ltt, t)),
console.log("Test is now ", e)
}
Which @ionic/app-scripts version are you using?
0.0.23