The ng serve command has many of the same options we saw in the ng build command and that is because the ng serve command internally does the build of the application. Let's look at some of the frequently used options in ng serve:
- open: When we just run the ng serve command, it builds the code and deploys the same on the local development server, but we still need to go to the browser and open the application URL. To automate this step, we can use the open flag, which when set to true will, after building and hosting, open the default browser and load the application.
- live-reload: As the name suggests, this tells the Angular CLI whether to reload the application every time we make a change in our code. Now, this can ...