I use Ionic 3 for my app and have a file on my XAMPP server, just with the input:
var test = 0;
now i wanna get this variable in my app.
i already included the file at index.html with:
i also added it to my GlobalProvider the lines
declare var test; dif1 = test;
but just have blankscreen
anyway i always have blackscreen when i try to connect to a server or whatever…
when i just write in the provider dif1 = 0, it works very well. so i think it´s a problem to get the js file.
did I do something wrong?