Thursday, 19 July 2018

Introduction To AngularJS and Features/Advantages Of AngularJS?

AngularJS
Angular JS is an open source JavaScript framework .
It is used to build web applications and It can be added to an HTML page with a <script> tag.
Angular Js is developed by Google.
It can be freely used, changed and shared by anyone.
It is  a framework which is used to  build single phase applications and line of business applications.
AngularJS Features/Advantages
Angular has the following key features ,They are

1)MVC :
It supports MVC which  stands for model view controller.
MVC is a pattern which is used to split or divide the application into three components: models, views, and controllers.
The MVC model defines applications with 3 logic layers, they are

  1. The business layer (Model )
  2. The display layer or Presentation layer (View )
  3. The input control (Controller )

Model :( application data and logic)
The Model is used to represent the application data ,model objects can retrieve data (and store data) from a database.

View: (User Interface) 
The View is used to display of the data and you can design your application using view 

Controller: (business logic) 
The Controller is the part of the application that handles user interaction .
Controllers read data from a view, control user input, and send input data to the model...

2)Two way Binding :AngularJS keeps the data and presentation layer in synchronization. Now you don't need to write additional JavaScript code to keep the data in your HTML code and your data later in synchronizationAngularJS will automatically do this for you. When data in the model changes, the view reflects the change, and when data in the view changes, the model is updated as well.

3)Writing less code : Less code is required to write for DOM(document object model) manipulation.

4)Testing :  It is very easy to test any of its components through unit testing and end-to-end testing.

2 comments:

apply function in R

1) apply function: It takes 3 arguments matrix,margin and function.. Example: m<-matrix(c(1,2,3,4),nrow=2,ncol=2) m #1 indicates it is ap...