AngularJS

I have planned to start writing about AngularJS. I have begun to learn AngularJS a few months back, it's a great feature for website UI developers. It is also easy to learn with interesting features available in this tutorial.

I have prepared a tutorial designed for the beginners wanting to learn the basics of AngularJS and its programming concepts in a simple and easy procedure. I will describe the components of AngularJS with suitable examples.

Angular is open source, completely free and used by thousands of developers around the world. It is licensed under the Apache license version 2.0.

AngularJS version 1.0 was released in 2012.

Miško Hevery, a Google employee, begun to work with AngularJS in 2009.

The idea turned out very well and the project is now officially supported by Google.

Reference for Angular js Tutorial:W3Schools,Tutorialspoint and C# Corner Member DJ for Angular Js.

What AngularJS is

Angular is a very powerful JavaScript library. It is used in Single Page Application (SPA) projects. It extends the HTML DOM with additional attributes and makes it more responsive to user actions. AngularJS is open source, completely free and used by thousands of developers around the world. It is licensed under the Apache License version 2.0.

Features

Prerequisites
The AngularJS framework can be divided into the following three major parts:
AngularJS is a JavaScript Framework

AngularJS is a JavaScript framework. It is a library written in JavaScript. Within the script tag use an Angular js reference file.
  1. <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>

Example

Step 1

The ng-app directive tells AngularJS that the <div> element is the "owner" of an AngularJS application.



Step 2

The ng-model directive binds the value of the input field to the application variable name.



Step 3

The ng-bind directive binds the innerHTML of the <p> element to the application variable name.



ng-init: The ng-init directive initializes AngularJS application variables.



Expressions:
AngularJS expressions are written inside double braces: {{ expression }}. Sample: if you want to add a two digit use , {{4+5}}



AngularJS expressions bind AngularJS data to HTML the same way as the ng-bind directive.



You will learn about models and controllers later in this tutorial.

Thanks for reading my article.