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
Short description of the problem:
My source code:
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:
Which @ionic/app-scripts version are you using?
0.0.23
Cordova CLI: 6.3.1
Gulp version: CLI version 1.2.2
Gulp local:
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS
Node Version: v6.7.0
The text was updated successfully, but these errors were encountered: