How to publish web pages created with Angular-cli

Asked 1 years ago, Updated 1 years ago, 55 views

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

2022-09-30 17:14

1 Answers

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.


2022-09-30 17:14

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.