DEV Community

Discussion on: Help - Accessing js file present on localhost:8080 from localhost:4200

Collapse
 
ajinspiro profile image
Arun Kumar

angular.io/guide/build
Checkout the above guide under the subheading
"Proxying to a backend server" to do this in development mode. I recommend you read the entire article.

For use in production, you will be running "ng build" command to get html, CSS , js files which you will put in local host:8080