• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to footer
  • Core Java
  • Design Patterns
  • JSP
  • Servlets
  • Building Tools
  • jQuery
  • Spring
  • Hibernate
  • Mongo DB
  • More
    • HTML
    • SCJP
    • AJAX
    • UML
    • Struts
    • J2EE
    • Testing
    • Angular JS

J2EE Reference

  • Home
  • About Us
    • Java Learning Centers
  • Contact Us

Why to use AngularJS?

June 3, 2017 By j2eereference Leave a Comment

What is AngularJS ?

AngularJS is the most popular and dominant JavaScript framework for professional web development.
It is well suited for small, large and any sized web app and web application. AngularJS can be added in an HTML page using the <script> tag as below

<script src=”https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js”></script>

Sample HTML page with AngularJS 

XHTML
1
2
3
4
5
6
7
8
9
10
11
12
13
<html ng-app>
  <head>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
  </head>
  <body>
    <div>
      <label>Name:</label>
      <input type="text" ng-model="name" placeholder="Enter your name here">
      <hr>
      <h1>Hello {{name}} , Welcome to j2eereference.com!</h1>
    </div>
  </body>
</html>

output

 

Why to use AngularJS?

There are following reasons,why to use AngularJS as a web development framework:

1. It follows MVC pattern which helps to organize your web apps or web application properly.

2. It extends HTML by attaching directives to your HTML markup with new attributes or tags and expressions in order to define very powerful templates.

3. It also allows you to create your own directives.

4.. AngularJS supports two-way data binding ,  Any change in model will update the view and vice versa without any DOM manipulation.

5. It encapsulates the behavior of your application in controllers which are instantiated with the help of dependency injection.

6. It provides $http service to communicate with REST service.

7. AngularJS mark-up lives in the DOM.

8. AngularJS uses plain old JavaScript objects (POJO).

9. AngularJS can be easily integrate with any other java script library.

 

Related Posts

  • AngularJS MVC Architecture

Filed Under: Angular JS

Reader Interactions

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

FOLLOW US ONLINE

  • View J2eereference-166104970118637’s profile on Facebook
  • View j2eereference’s profile on Twitter
  • View j2eereference’s profile on LinkedIn

Subscribe by email

Recent posts

  • Java Buzzwords
  • Anonymous Inner Class in Java
  • Network Programming – java.net Package
  • Java Regular Expressions
  • Method Local Inner Class in Java
  • URL Processing in Java
  • Iterator Design Pattern Implementation using Java
  • Strategy Design Pattern Implementation using Java
  • Decorator Design Pattern
  • Adapter Design Pattern Implementation using Java
  • JSF Composite Components
  • JSF UI Components
  • What is JavaServer Faces (JSF)?
  • GOF Design Patterns
  • History and Need for Design Patterns

Footer

Core Java
Design Patterns
JSP
Servlets
HTML
Building Tools
AJAX
SCJP
jQuery
Testing
Spring
UML
Struts
Java Centers
Java Training
Home
About Us
Contact Us
Copyright © j2eereference.com. All right reserved.