- ng build command builds the angular application and generates the build artifacts which are saved under the /dist folder in the application directory.
- ng serve command builds the angular application in the memory, without saving the artifacts to any external folder and runs the application on the web server.
What is the difference between ng build and ng serve?
the following is the major difference between ng build and ng serve in Angular