I am having tough time defining a global variable to be accessible in the whole app. The app is based on Ionic2 and Angular2.
I tried to many approaches but none worked. In some examples on SO I can't understand where to store the js file physically.
Exampe I tried: Example