This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.
Generated code does not do what was intended #182
Closed
Description
Short description of the problem:
My source code:
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
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
Metadata
Metadata
Assignees
Labels
No labels