Notifications
Clear all

AngularJS Vs Angular  

   RSS

2

What is the difference between AngularJS Vs. Angular 2 Vs. Angular 4? please explain

Topic Tags
1 Answer
1

AngularJS

The architecture of AngularJS is based on model-view-controller (MVC) design. The model is the central component that expresses the application's behavior and manages its data, logic, and rules. The view generates an output based on the information in the model. The controller accepts input, converts it into commands and sends the commands to the model and the view

AngularJS is written in JavaScript. 

To bind an image/property or an event with AngularJS, you have to remember the right ng directive.

AngularJS was not built with mobile support in mind.

Angular 

In Angular 2 and beyond, controllers and $scope were replaced by components and directives. Components are directives with a template. They deal with a view of the application and logic on the page. There are two kinds of directives in Angular 2. These are structural directives that alter the layout of the DOM by removing and replacing its elements, and attributive directives that change the behavior or appearance of a DOM element.

In Angular 4, the structural derivatives ngIf and ngFor have been improved, and you can use if/else design syntax in your templates.   

Angular uses Microsoft’s TypeScript language, which is a superset of ECMAScript 6 (ES6). This has the combined advantages of the TypeScript features, like type declarations, and the benefits of ES6, like iterators and lambdas.

Angular 4 is compatible with the most recent versions of TypeScript that have powerful type checking and object-oriented features. 

Angular 2 and versions beyond features mobile support.

Angular uses @RouteConfig{(…)} for Routing.

For more information, please follow the below link

https://www.simplilearn.com/angularjs-vs-angular-2-vs-angular-4-differences-article

This post was modified 7 months ago by Raja
Share:
Share this
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •