Loading...


Today, We are going to discuss about AngularJS. 
  1. What is angularJS. 
  2. Why we use AngularJS
  3. Advantage of AngularJS
  4. Core Feature of AngularJS


1.) What is angularJS
Ans: AngularJs is a JavaScript based open-source that is used for web framework. Also we use angularJS to create a single-page application. This is maintained by Google. 


2.) Why we use AngularJS
Ans: AngularJs is designed to build dynamic web application. AngularJS allow us to bind data and inject eliminate most part of code. AngularJs provide in-build functions and services to use very frequently.  


3.) Advantage of AngularJS
a) AngularJS provide the efficient framework to develop web based application.
b) Its provide the MVC (Model View Controller) pattern.
c)  Applications written in AngularJS are cross-browser compliant. AngularJS automatically handles JavaScript code      suitable for each browser.


4.) Core Feature of AngularJS
The core features of AngularJS are as follows −

Data-binding − It is the automatic synchronization of data binding between model and view components (HTML).

Scope − These are objects that refer to the model. They act as a glue between controller and view. Passing information from model to view and view to model.

Controller − These are JavaScript functions bound to a particular scope with JavaScript and View (HTML)

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. $animate - This service exposes a series of DOM utility methods that provide support for animation hooks.

Filters − These select a subset of items from an array and returns a new array.

Directives − Directives can change behavior of DOM elements runtime such as elements, attributes, css, and more. These can be used to create custom HTML tags that serve as new, custom widgets. AngularJS has built-in directives such as ngBind, ngModel, etc.

Templates − These are the rendered view with information from the controller and model. These can be a single file (such as index.html) or multiple views in one page using partials.

Routing − It is concept of switching views.

Model View Whatever − MVW is a design pattern for dividing an application into different parts called Model, View, and Controller, each with distinct responsibilities. AngularJS does not implement MVC in the traditional sense, but rather something closer to MVVM (Model-View-ViewModel). The Angular JS team refers it humorously as Model View Whatever.

Deep Linking − Deep linking allows 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.