Bonus: Hello world with the Angular CLI

Why don't we go ahead and create an example project using the CLI?

Follow these steps to create a project:

  1. Open your favorite Terminal.
  2. 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:

  1. Go into the "cli1" folder: cd cli1.
  2. 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 ...

Get Learn TypeScript 3 by Building Web Applications now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.