I'm working with ionic 3 and I try to work with js files ... I followed another post where they ask me to add some things in index.html and app.component.ts (and I have done it) but when wanting to show in console what contains the variable declared in the js, it marks me as undefined, but it is assumed that and call the js file on the previous pages ... could someone tell me why it does not work for me?