Sign in to follow this  
Armyw0w

Simple Angular APP isn't loaded.

Recommended Posts

I've done lots of JS development for HbbTV devices and these don't normally provide access to console outputs so I've been using a free tool called "weinre". It is a client server solution to enable remove debugging of JS code. You run the server, add a script tag to your HTML file, then load the server url in a browser running on your desktop. You'll be able to inspect the DOM tree, see the console logs (including object expansion), network logging. 

 

It is a very handy tool. Here's the homepage: https://people.apache.org/~pmuellr/weinre/docs/latest/

 

Share this post


Link to post
Share on other sites
11 hours ago, Angel said:

I've done lots of JS development for HbbTV devices and these don't normally provide access to console outputs so I've been using a free tool called "weinre". It is a client server solution to enable remove debugging of JS code. You run the server, add a script tag to your HTML file, then load the server url in a browser running on your desktop. You'll be able to inspect the DOM tree, see the console logs (including object expansion), network logging. 

 

It is a very handy tool. Here's the homepage: https://people.apache.org/~pmuellr/weinre/docs/latest/

 

https://imgur.com/a/ZKFwP

Well, the console doesn't work.

Share this post


Link to post
Share on other sites
On 28/12/2017 at 9:19 PM, Armyw0w said:

https://imgur.com/a/ZKFwP

Well, the console doesn't work.

 

I'd go back to the basics. Does having a simple index.html load?

 

From what I see of the available clients out there, none of them provide an index.html but the entry points are index.js which "include" the other required files. I've got a feeling that the RAGEMP application is providing it own index.html (located in ui/ directory) and your scripts are to utilise the DOM that is created based off that index.html.

 

So, perhaps you could change the index.html to an index.js that includes the other bundle.js files needed (using 'require'). Though you would have to work out how to instruct angular as to where it's app root should be.

 

I hope this helps and I apologise if it make things worse ;)

Share this post


Link to post
Share on other sites
3 hours ago, Angel said:

 

I'd go back to the basics. Does having a simple index.html load?

 

From what I see of the available clients out there, none of them provide an index.html but the entry points are index.js which "include" the other required files. I've got a feeling that the RAGEMP application is providing it own index.html (located in ui/ directory) and your scripts are to utilise the DOM that is created based off that index.html.

 

So, perhaps you could change the index.html to an index.js that includes the other bundle.js files needed (using 'require'). Though you would have to work out how to instruct angular as to where it's app root should be.

 

I hope this helps and I apologise if it make things worse ;)

I added a h1 tag to check if the index.html is loaded, and it is.

after that h1, the app content should be replaced.

So my conclusion is:

1. it's a error in scripts

2. The scripts aren't loaded good (but on desktop works)

@ragempdev can you check?

Share this post


Link to post
Share on other sites

fixed.

the app files should be a in a separate folder than client_packages

the index.html don't loaded JS or didn't executed the js

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.