Pages

AngularJS Overview

Well, I am no expert in angularjs and its not a post where you will learn some new techniques in angular if you are an expert or you have already done some work in angular. This post will briefly describe the overall concept of AngularJS and the general things you do in angular and why you do it.

What is it?

AngularJS is a framework built on top of Javascript. Now, javascript is a browser scripting language and is very widely used because its the only scripting language supported by all the major browsers and almost all the modern web applications do not function without Javascript. AngularJS is a framework which make is much easier to do the general things, what we achieve by writing a lot of javascript.

Difference between Angularjs and Javascript or JQuery

Basically, we write very little code and achieve more in angular then we can using javascript or Jquery alone. The most common features of event handeling, and view changes are built into angularjs and we can plug it in the page with very less effort.

Architecture

AngularJS uses MV* design pattern. It has a two way binding between model and view. That means, if one changes, the other automatically changes. We include the angularjs file in the html, and then write the module and the controllers. Inside controllers, we have access to the scope, services and other things where we write our logics and variables. We can build a model from the servers data as well.