How to start new angular project

Here are the steps to start a new Angular project:

Method 1: Using the Angular CLI

  1. Install the Angular CLI globally by running the following command in your terminal:

    npm install -g @angular/cli
  2. Create a new Angular project by running the following command:

    ng new my-app

    Replace my-app with the name of your project.

  3. Follow the prompts to choose the project template and configuration options.

Method 2: Using the Angular CLI with a specific template

  1. Install the Angular CLI globally by running the following command in your terminal:
    npm install -g @angular/cli
  2. Create a new Angular project with a specific template by running the following command:
    ng new my-app --template=blank

    Replace my-app with the name of your project and blank with the template name (e.g., blank, routing, full).

Method 3: Using a code editor or IDE

  1. Open your preferred code editor or IDE (e.g., Visual Studio Code, IntelliJ IDEA, WebStorm).
  2. Create a new project by selecting the "Angular" or "Angular CLI" template.
  3. Choose the project name, location, and configuration options.

Common configuration options

When creating a new Angular project, you'll be prompted to choose the following configuration options:

Next steps

After creating your new Angular project, you can: