Angularity of AngularJS

What is AngularJS?

AngularJS an open source javascript framework, mainly used in Single Page Applications(SPAs). Applications are easy to build and easy to maintain. AngularJS was originally developed in 2009 by Misko Hevery and Adam Abrons. It is now maintained by Google.

What makes it special?

  • Most important feature, allows building of Single Page Applications(SPAs)
  • Data binding capability to HTML, gives a responsive user experience. Data-binding is the automatic synchronization of data between model and view components. The two-way data binding  reduces the amount of code to be written by relieving the server backend of templating responsibilities. Instead, templates are rendered in plain HTML according to data contained in a scope defined in the model
  • Filter feature helps a subset of items from an array and returns a new array.
  • Built-in directives such as ng-app, ng-bind, ng-model, ng-view etc. are markers on DOM elements (such as elements, attributes). These can be used to create custom HTML tags that serve as new, custom widgets.
  • The $scope service in Angular detects changes to the model section and modifies HTML expressions in the view via a controller. Likewise, any alterations to the view are reflected in the model.

The AngularJS framework can be divided into following three major parts:

  • ng-app : This directive defines and links an AngularJS application to HTML.
  • ng-model : This directive binds the values of AngularJS application data to HTML input controls.
  • ng-bind : This directive binds the AngularJS Application data to HTML tags.
Advertisements

One thought on “Angularity of AngularJS

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s