Why don't we go ahead and create an example project using the CLI?
Follow these steps to create a project:
- Open your favorite Terminal.
- Create a project using ng new cli1 or npx @angular/cli new cli1.
Congratulations! You now have your own Angular playground application.
The creation of the project could take a bit of time, given that the CLI will trigger the installation of the project's dependencies.
Once everything is installed, you'll be able to start the application by following these instructions:
- Go into the "cli1" folder: cd cli1.
- Run the following command: ng serve --open.
The ng serve command will start a local web server to serve your application, by default, on port 4200. You can learn ...