Features of AJS

Following are most important core features of AJS

Data-binding: Data binding means that when an element is changed in the user interface, the underlying data model is also changed.and two way binding if Data model is changed, the UI element is also changed.

Scope: Scope is nothing but an object that act as a glue between View and Controller. They hold the Model data that we need to pass to view. Scope uses Angular’s two way data binding to bind model data to the view.

Components: Modules are logical entities and responsible for maintaining your app data. if your application have sevral modules than each modules have a separate logical entity.

Services: AngularJS come with several built-in services for example $http to make a XMLHttpRequests. These are singleton objects which are instantiated only once in app.

Filters: A filter format the value of an expression for display to the user.Select a subset of items from array and returns it as a new array.

Templates: These are the rendered view with information from the controller and model.

Routing: − It is the concept of switching views.

Model View Controller: MVC is a design pattern for dividing an application into different parts (called Model, View and Controller), each with distinct responsibility.

Model :It is responsible for maintaining data.In below example we use $scope is an object, user is a variable which is added to scope object.

View: It is responsible for display data to the user.or we can say view is the DOM elements which is used to display data.

Controller: Controller is the place where we put our application logic and used model to get the data and send it to the view for user interaction.Controller is formed simply java script classes where we declare over action for particular task.

Dependency Injection : Dependency Injection (DI) is a software design pattern that deals with how components get hold of their dependencies.