«

»

Mar 27

What is AngularJs

Angularjs is javascript base web application development framework. It is a structural web application framework. Application made using javascript and html. Angularjs application fully support cross browser.

The most important feature of angularjs are as follow.

  • Angularjs provide developers an option to develop client side application using javascript model view controller.
  • Angularjs automatically support javascript code suitable for each browser.
  • Angularjs is free open source and used by thousands of developer.

Core Feature

Data-Binding : Angularjs automatically synchronize data between model and view.
Scope : These are object refer to the model. They act between controller and view.
Controller : These are javascript functions bound to a particular scope.
Services : AngularJS comes with several built-in services such as http to make a XMLHttpRequests. These are singleton objects which are instantiated only once in app.
Filters : These select subset of items from an array and return a new array.
Directives : Directives are markers on DOM elements like elements, attributes, css, and more. These can be used to create custom HTML tags that serve as new, custom widgets. Angularjs have some built-in directives such as ngBind, ngModel etc.
Templates : Templates are render view with information from controller and model.
Routing : Concept of switching view.
Model view whatever : it is design pattern for devide application in different part. Angularjs does not implement mvc but it is closer to mvvm.
Deep Linking : Deep linking allows you to encode the state of application in the URL so that it can be bookmarked. The application can then be restored from the URL to the same state.
Dependency Injection: AngularJS has a built-in dependency injection subsystem that helps the developer to create,understand, and test the applications easily.

Advantages

  • Angularjs provide capability to create one page application in very clean way.
  • Angularjs provide data binding capability to HTML.
  • Angularjs provide resuable components.
  • The developer can achieve more functionality with sort code.
  • In angularjs, Views are pure HTML pages and controller written in JavaScript.
  • Angularjs is unit testable.
  • AngularJS uses dependency injection and make use of separation of concerns.

Disadvantages

  • Being javascript is only framework. Application written in angularjs are not safe. server side authentication and authorization is must to keep application secure.
  • If the user disable javascript in browser then angularjs application has loading problem and nothing show except basic page.

Angularjs in-built directives

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>