How do you create new application using Angular CLI?

Experience Level: Junior
Tags: Angular Angular CLI

Answer

Run the following command from the command line:

ng new

This command create a new Angular application in the current directory.

Enter the settings for the new project

  • Name of the project
  • Type Y so that the Angular routing will be added
  • Select SCSS (or other Stylesheet format if you don't prefer SCSS)
Related Angular CLI job interview questions
Angular CLI for beginners
Angular CLI for beginners

Are you learning Angular CLI? Try our test we designed to help you progress faster.

Test yourself