I am a beginner in framework.
This is my first time to create a simple web page using Angular-cli
.
The actual index.html
does not have a code written on it, so I made it separately according to the components.
I don't know how to give the Angular 2 to the server.
There are various files such as node_modules
and dist
, but should I include them all?
If anyone understands, please let me know.
I look forward to your kind cooperation.
angular2
Self-Solution
After a lot of research, I found that the file I post on the web is
If you run the command ng build
in the directory you ngserve
at the terminal (without ngserve
, the file for the web is added to the file dist
.
I think you can upload the dist
file as it is.
Thank you.
© 2024 OneMinuteCode. All rights reserved.