I'm trying to create an app in Angular 7, following the tutorial that gives you the default page
ng new my-app
I already reviewed it with ng serve --o and it works, but I have no idea now how to pass it to an environment outside of Angular. I've done
ng --build --aot = true
This has created a folder / dist / my-app and 3 JS files come in: main.js, polyfills.js and runtime.js I opened the index.html but nothing is shown, I expected to see the same thing I was doing in development.
I tried to run them with node, doing for example node main.js but it has not worked, in the 3 options it says
window is not defined
Has anyone already done these deploys to see how it would be in production?
What am I doing wrong....
... opened the index.html but nothing is shown.<= You are likely getting an error in the browser. Open the browsers debug window and look at the console output. What is the error. Include the error(s) in the question or, better yet, search on the error message and see if you can figure out the solution based on the error.