Install and Run Angular Application
Learn to install Angular CLI, create, and run the Angular app using CLI.
We'll cover the following
Install the CLI
We can install Angular’s CLI by running the command below on the terminal.
npm install -g @angular/cli@11.2.7
Create Angular application
Once CLI has been installed, let’s generate a new Angular app by running:
ng new exploring-angular
Running the ng new
command should display some command prompts asking if we’d like to add Angular routing and which stylesheet format we’d like to use. Simply hit the “Enter” key twice to select the default values for both prompts (No and CSS respectively).
Run the application
Once the application creation has finished, move into the new directory and run the application.
cd exploring-angular
ng serve
Get hands-on with 1400+ tech skills courses.