From the course: Learning the Angular CLI

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The ng new command

The ng new command - Angular Tutorial

From the course: Learning the Angular CLI

Start my 1-month free trial

The ng new command

- [Instructor] Let's start using the CLI to scaffold a new sample application. We won't be developing a full application but our goal on this course, is to fully learn all that the CLI has to offer. We can start at the terminal and execute, ng new, and the name of the application. And we will use the dash, dash, dry-run flag, to test things out. It will first ask you a couple of questions. Do we want angular routing? Let's say yes. Which style sheet format do we want? I'm going to use my arrow key and choose SCSS, and hit enter. How do we run this without the dry-run flag? This would have scaffolded a new project for me and started installing dependencies, generating a package of JSON, config files for TypeScript testing and running and building the application. Along with an application module, bootstrapped and ready to go. Let's now take a look at the different ways we can generate a new angular application.…

Contents