Angular combines declarative templates, dependency injection, end to end tooling, and integrated best practices to solve development challenges. Angular empowers developers to build applications that live on the web, mobile, or the desktop.
The current stable version of Angular is 7.2.13 and we are going to explain the steps of installation of it on Windows 10 operating system.
For visual learners, the video below will help you to do this installation faster. It is completely based on this blog post.
For others, Please follow the below steps to install Angular 7 on Windows 10.
1. Install Nodejs
In this tutorial, we are going to install Angular CLI using the Node Package Manager(NPM). So first, it needs to install Nodejs on our system. NPM will be installed with Nodejs.
So, the latest version of Node.js can be downloaded and installed from the official website. The URL is given below. Currently, 12.4.0 is the latest version of Nodejs.
2.Install Angular CLI
Angular CLI helps us to create projects, generate application and library code, and perform a variety of ongoing development tasks such as testing, bundling, and deployment.
It can simply be installed using NPM. So first, open our Command Prompt / Powershell and install the Angular CLI with the below command.
npm install -g @angular/cli
3. Creating a New Angular Application
We successfully installed Angular CLI on our system and now we can set up a workspace for Angular projects in our system and create a new app. This can be done with the below command.
ng new awesome-project
4. Running Our App
Now, the app we created can be run using ng serve.
cd awesome-project ng serve --open
This launches the server, watches our files, and rebuilds the app as we make changes to those files.
The –open (or just -o) option automatically opens our browser to the below address.
Have a nice code !