Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49340

Js file from server

$
0
0

@Josef87 wrote:

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:

 <script src="192.xxx.xxx.xxx/test/filename.js"></script>

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?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49340

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>