I am trying to access a global JS variable. When I console out the global window variable (in the example below) I can see the variable I am trying to access in the logged object.
constructor(public navCtrl: NavController) {
console.log(window);
}
When I try to select the variable, it says the variable cannot be found.
constructor(public navCtrl: NavController) {
console.log(window.someVar);
}
Thanks, any help is appreciated.