- 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.
![](https://i0.wp.com/referbruv.com/wp-content/uploads/2022/05/banner-image-questions-new.png?fit=1200%2C600&ssl=1)
What is the difference between ng build and ng serve?
the following is the major difference between ng build and ng serve in Angular