ng serve to serve the angular application

Create a new workspace and generate a new sample application by running the following command in command prompt

ng new {appName}

To serve the application go to the project directory and run the command as shown below:

ng serve --open

The ng serve command builds the app, starts the development server, watches the source files, and rebuilds the app as you make changes to those files.
The --open flag opens a browser to http://localhost:4200/