Welcome to the Angular CLI documentation! This guide will help you understand how to use the Angular CLI to develop Angular applications.
Quick Start
Before you begin, make sure you have Node.js and npm installed. You can download and install Node.js from here.
Once you have Node.js and npm installed, you can install the Angular CLI globally using npm:
npm install -g @angular/cli
To create a new Angular project, run the following command:
ng new my-app
This will create a new directory called my-app
with all the necessary files and configurations.
Getting Started
Installation
The Angular CLI is installed using npm. To install the Angular CLI globally, open your terminal or command prompt and run the following command:
npm install -g @angular/cli
Creating a New Project
To create a new Angular project, use the ng new
command followed by a project name:
ng new my-app
This will create a new directory called my-app
with all the necessary files and configurations for an Angular application.
Running the Project
To start your Angular application, navigate to the project directory and run the following command:
ng serve
This will start a development server and open your application in the default web browser.
Further Reading
For more detailed information, please visit the official Angular CLI documentation.