AOT and ViewController results in "t"


constructor(public viewCtrl: ViewController) {

this.currentpage =;


on mobile, with “build” (and AOT) results in “t”, while it should say either “Page1”, or “Page2”, as it does in the web browser.

Now I understand from this similar problem here (Link) that this is expected behaviour, BUT how am I supposed to check what page I am on, if all it reports back is “t” and no longer “Page1” or “Page2”… it’s just “t” on every page?

So frustrating… can anyone please help me?