How to load server side script in ionic app just like a browser (client) does?


#1

Hi,

I had a node.js server and browser client and would like to change the browser client to a mobile app.

In my node.js application, there are scripts on the server and the client run the script locally with <script src="/server/dir/code/code.js></script>. The client have the code through http request to the node.js server.

Now in an ionic app, we have index.html and templates. The index.html load local js with <script src="local_dir/code.js"></script>. For example, <script src="js/app.js"></script>.

Now how can I refer to server side script?

Thanks.