AngularJS Introduction

Angular JSis an open source JavaScript framework to develop web based applications. Angularjs is usually used to create Single Page Application. It is easy to code in AngularJS. Also it is very easy to deploy Angular JS in any web application.

Angular JS was build by google in 2011.

AngularJS Features

There are lots of feature in angularJS and some of these are as follows: -

  1. Angular JS supports two-way binding
  2. Angular JS supports mvc concept
  3. Angular JS supports routing
  4. Angular JS provides dependency injection
  5. Testing is also very easy in Angular JS

Set up the environment of AngularJS

As we know AngularJS is javascript framework so first we need to add javascript file which Angularjs is using. It is using Angular.js file to work.

Go to the angularjs official website to download angular.js file

AngularJS is having two versions i.e. AngularJS and AngularJS 2. In the beginning we will learn AngularJS 1 and then later we will start second version.

So click on the Angularjs 1

		angularjs introduction
		Figure 1

After click on download button and download file.

If you do not want to download file, then you can use following Angular JS CDN in your application.

<script src=""></script>

now open any code editor in which you want to learn angularjs. For this tutorial I am using Adobe Bracket which is an open source tool to work with html.

I am using following html file to work with angularjs.

<!doctype html>
<html lang="en">
    <title> AngularJS Tutorial</title>
    <meta charset="UTF-8">
    <script src="angular.min.js"></script>


Test Angular JS

To test whether Angular JS is attached with our web application, open browser console and type angular, and object will be returned. This means Angular JS is working in our application.

// return {$interpolateMinErr: ƒ, element: ƒ, errorHandlingConfig: ƒ, bootstrap: ƒ, copy: ƒ, …}

Check Angular JS Version

To check angular js version, type angular.version.full in console. The string return value will be version of angular js

    angular.version.full             // return "1.6.4"
Note: - create your project folder in which add angular.min.js file and html file in which you want to work. And if you do not want to use angular.min.js file then you can add cdn in script src.