Tutorial-1 Installing AngularJS

Installation and Setup of AngularJs4


Hi all in this tutorial we will try to install Angular4, and all the dependencies for developing an Angular Application.

Step 1 : Installing NodeJS:-

You can check if the nodeJs is already installed in your system or not, by entering following command in the Command Prompt/terminal.
Syntax : node -v


Fig 1: Syntax to know the NodeJs version

From above image you can find that, as because I already have installed nodeJs, so by entering the above command I got the nodeJs version available in my system.

But what if the nodeJs is not there in your system, then don’t worry you can visit https://nodejs.org/en/download/ and download the NodeJs source code or installer according to your Operating System, and can install it.

Fig 2: Download screen of Node.js

After installing it again enter the previous command to see whether nodeJs is successfully Installed or not, if its successfully installed then it will so you the installed version of the nodeJs as shown in Fig1. If not then try to google for troubleshooting the problem you are facing.

Step 2: Installing AngularCLI:-
Next we will install the Angular CLI package which is required for dealing with the AngularJs. Enter the below command in your command prompt for installing the AngularCLI, remember you have to install it Globally by providing -g, cli stands for Command Line Interface.
Syntax: npm install -g @angular/cli


Fig 3: Syntax for installing AngularCLI


Fig 4: Successful installation of AngularCLI

After the installation gets finished,now we have to check if its available for use or not, by entering the below command.

Syntax: ng -v

Fig 5: Detecting angular installation and its version.


Congrats now you are done with the basic installation of Angular, the next section will demonstrate about how to create a fresh brand new Angular Application, run the application in browser, build the application and hosting it in the Apache Tomcat Web-server.

Tutorial Home                                                                                                                       Next ->

Comments

Popular posts from this blog

Tutorial-6 Pipes

Angular2 Tricks

Tutorial-4 Data Bindings in Angular