Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what are the differences between angular2 and angular4 [duplicate]

can you please let me know the differences between angular2 and angular4. We know that there is a drastic change between angular1 and angular2. Is it repeated again for angular4.

like image 732
mahesh peddi Avatar asked Apr 05 '17 07:04

mahesh peddi


People also ask

What is the difference between Angular and Angular 2?

Though AngularJS and Angular 2 are both frameworks for developing websites, they use different coding languages. AngularJS uses JavaScript, a text-based coding language used to make interactive elements. Angular 2 uses TypeScript, a subset of JavaScript created by Microsoft that incorporates static type definitions.

What is the difference between Angular 2 and 4?

is the latest version of Angular. Although Angular 2 was a complete rewrite of AngularJS, there are no major differences between Angular 2 and Angular 4. Angular 4 is only an improvement and is backward compatible with Angular 2.

What is the difference between different Angular versions?

Angular 2 VS Angular 4 The major difference between Angular 2 and Angular 4 is their performance value. It is an updated and improved version of Angular 2. It comes with better values, resources, and user-interaction, and so on. There are only minor differences between these two in terms of core libraries and codes.


1 Answers

There is nothing path breaking between angular 2 and angular 4 like angular 1 and angular 2. They are just doing it to maintain SEMVER(Sementic Versioning). Angular 2 is stable now so it would be better to prefer angular 2 instead of angular 4.

Angular 2 was a complete rewrite of AngularJS 1.x with many new concepts. Angular 4 however is the next version of Angular 2. The underlying concepts are still the same and if you have already learned Angular 2 you’re well prepared to switch to Angular 4 now.

The reason it’s Angular 4 and not Angular 3 is that the Angular Router package has already been in version 3 before. The Angular team would like to avoid confusion and decided to skip version 3 for Angular and continue with Version 4.

Update from comments

  • Also, in Angular 4, animation functions are imported from @angular/animations instead of @angular/core

For more detail i have published this article read here

  • Why Angular4 over Angular2 ?
like image 61
Pardeep Jain Avatar answered Sep 30 '22 22:09

Pardeep Jain