Angular is a JavaScript open-source framework which helps in developing single-page web applications suitable for web/mobile/desktop. Angular supports the use of TypeScript instead of JavaScript in our project if we are familiar with it.
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.
- AngularJS is what HTML would have been, had it been designed for building web-apps. Declarative templates with data-binding, MVW, MVVM, MVC, dependency injection and great testability story all implemented with pure client-side JavaScript!
- Angular CLI A command line interface for Angular Get Started ng new. The Angular CLI makes it easy to create an application that already works, right out of the box.
Npm uninstall -g @angular/cli or local. Npm uninstall @angular/cli 3) Then install desired version in the same scope as you uninstalled (making sure of any dependencies with other components) global. Specific version. Npm install -g @angular/cli@1.4.1 latest version. Npm install -g @angular/cli local Same as global but without the '-g' flag.
The current stable version of Angular is 8.2.0 and we are going to explain the steps of installation of it on macOS X operating system.
1. Install and Update Homebrew
Homebrew is a popular package manager for macOS. We can install all the packages and dependencies required to install Angular using Homebrew. So at first, we need to install it on our system.
To install Homebrew, open the Terminal and run the command below.
So we have installed Homebrew on our system successfully and now we need to update it so that we can get the latest version of packages available on HomeBrew.
2. Install Nodejs

In this tutorial, we are going to install Angular 8 using the Node Package Manager(NPM). So first, we need to install Nodejs on our system. NPM will be installed with Nodejs itself.
Nodejs can be installed on our system using the below brew command.
Alternative method
Alternatively, we can download and install Nodejs from the official website. If so, it does not need Homebrew to be installed on our system.
Currently, 12.7.0 is the latest version of Nodejs and it can be downloaded and installed on our system using the URL below.
Select the macOS installer option and download the node-v12.7.0.pkg file. Then install it on our system.
3. 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 Terminal and install the Angular CLI with the below command.
4. 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.
5. Running Our App
Now, the app we created can be run using ng serve command.
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 !
Installation Guides to Angular 8 step by Step
Angularcombines declarative templates, dependency injection and, end to end tooling tosolve development challenges. Angular empowers developers to build anapplication that lives on the mobile, web, and the desktop. The current versionof Angular is 7.2.13, and we are going to explain the steps of installation inWindows 10 operating system.
To installAngular 8, we require the following things:
- Windows 10
- Node.js (12.6.0)
- NPM
- Angular CLI(Command Line Interface)
- An IDE for writing our code(VS code)
- Git
Afterinstalling these in our system, we have to know what these things are:
Node.js: Node.js is open-source, cross-platform JavaScript runtime environment that executes JavaScript code outside a browser. And it is developed by Ryan Dahl wrote in C, C++, and JavaScript. It is free to use and run on various platforms (Windows, Linux, UNIX, Mac, etc. It can generate dynamic page content and can add, delete, and modify data in the database. Node.js file have extension “.js”.
Angular Cli Download
NPM: NPM is a package manager in node.js packages. www.npmjs.com hosts millions of free packages to download and use. The NPM program is installed in our computer when we install node.js. A package in node.js contains the entire package we need for a module. Downloading a package is very compatible. Open the command-line interface and say NPM to download the packages which we want. If we want to download a package called “upper-case”:
2 | C:Userse>npm install upper-case |
Angular CLI: Angular CLIis known as Angular Command-line interface. An Angular CLI is used for creatinga project. It can be used to create content, services, pipes, directives, andmany more; also, it helps in building, serving, testing, etc. It makes AngularDevelopment workflow much easier and faster.
IDE (Visual Studio): Microsoft Visual Studio is an integrateddevelopment environment developed by Microsoftand it is written in C++ and C#. It is used to create computer programs, aswell as websites, web apps, and mobile applications. The visual studio usesMicrosoft Software Development platforms such as Windows API, Windows Forms,Windows Presentation Foundation, Windows Store, and Microsoft Silver light. Ithas produced both native codes and managed code.
VS code is light and easy to setup. It is free to use and provide a massive number of extensions that increaseyour productivity.

We can download the VS Code fromhere: https://code.visualstudio.com.
Git: Gitis a distributed version control system used for tracking changes in sourcecode during software development. It is designed for spreading work amongprogrammers. But it is used to track any set of change in files. Linus Torvalds created it in 2005 fordeveloping the Linux kernel. Git is free and open-source software distributionsystem under the term of the GNU(General Public License) version 2.
1. Install Node.js:Firstly, we need to install node.js in our system thenNPM will be connected with node.js. So, the latest version of node.js could bedownloaded and installed from the official website. Currently, 12.4.0 is thetrending version of node.js. The URL is given below:
Afteropening the link, this page has appeared. We can choose the second one forlatest version of node and npm.
Afterdownloading, we have to install the node.js in our system. The steps are asfollows:
Clickon “Run.”
Click“Next.”
Click“Next.”
Againclick “Next.”
Clickon “Install.”
Thenode.js is successfully installed in our system.
Installation of Git
Firstly, we have to open the officialwebsite of Git:
Clickon “Run.”
Clickon “Next.”
Inthe above screenshot, the Git is successfullyinstalled in our system.
Afterthat, we have to install AngularCLI in our system so that we have to open theofficial website of angular form the URL:
We can check the current version of Node and Node package manager (Npm) from the following command.
2 4 | Node–v |
Right-click on the desktop and click on“Git Bash Here” then a command-line interface will open in the desktop.
Here,the “GIT BASH” is opened in our system,and thenwrite the commands.
And then we have to download the Angular CLI with the help of command-line in Git. Write this command in Git Bash.