Comparison of Different Angular Versions

Major release version of Angular are:

  • Angular JS

  • Angular 2

  • Angular 4

  • Anugular 5

  • Angular 6

The version 2.x and higher is called 'Angular' and the version 1.x or less is called 'Angular JS'

Angular JS:

AngularJS is a pure JavaScript framework, and models in AngularJS are plain old JavaScript objects. AngularJS follows the traditional MVC architecture that comprises a model, a view and a controller

Angular 2:

Angular 2+ introduced TypeScript as the default language for building applications. TypeScript is a syntactic superset of JavaScript that compiles down to plain JavaScript. The Angular team chose TypeScript over JavaScript because of the type annotation feature that lets you do optional static type checking.Every Angular application has at least one component known as the root component. Each component has an associated class that’s responsible for handling the business logic and a template that represents the view layer. Multiple, closely related components can be stacked together to create a module and each module forms a functional unit on its own

Angular 4:

  1. Animation Package package out from @angular/core and put into separate package. That mean if you don’t want to use that module , this extra code will not end up in your production bundles.

  2. provide support of latest version of typesctipy i.e TypeScript 2.1 & 2.2 compatibility added.

  3. make angular bundle Smaller & Faster as compared to previous one

  4. ModuleID Removed which we are using for providing relative path during template URL and StyleUrls.

  5. <Template> is now <ng-template>

  6. Improved *ngIf with else condition.

  7. Introduced some new Pipes like titlecase.

Angular 5:(Code is named pentagonal-donut )

Focus was on making Angular smaller, faster, and easier to use. Major changes are:

  1. Build Optimizer- production builds created with the CLI will now apply the build optimizer by default

  2. Angular Universal State Transfer API and DOM Supporteasily share application state between the server side and client side versions of your application

  3. Compiler Improvements - Improved the Angular compiler to support incremental compilation

  4. TypeScript Transforms - the Angular compiler now operates as a TypeScript transform, making incremental rebuilds dramatically faster.

  5. Preserve Whitespace - Historically tabs, newlines, and spaces in your templates have been faithfully recreated and included in your build by the compiler. You can now choose whether or not to preserve whitespace coming from your components and your application

  6. Improved Decorator Support

Why there is no Angular 3

Angular is being developed in a MonoRepo (https://github.com/angular/angular) it means a single repo for everything. @angular/core , @angular/compiler , @angular/router etc are in the same repo and may have there own versions. Due to  misalignment of the router package’s version, the team decided to go straight forAngular v4.

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!

Quick Notes Finder Tags

Activities (1) advance java (1) agile (3) App Servers (6) archived notes (2) Arrays (1) Best Practices (12) Best Practices (Design) (3) Best Practices (Java) (7) Best Practices (Java EE) (1) BigData (3) Chars & Encodings (6) coding problems (2) Collections (15) contests (3) Core Java (All) (52) course plan (2) Database (12) Design patterns (8) dev tools (3) downloads (2) eclipse (9) Essentials (1) examples (14) Exceptions (4) exercises (6) Getting Started (18) Groovy (2) hadoop (4) hibernate (77) hibernate interview questions (6) History (1) Hot book (4) http monitoring (2) Inheritance (4) intellij (1) java 8 notes (4) Java 9 (1) Java Concepts (7) Java Core (4) java ee exercises (1) java ee interview questions (2) Java Elements (16) Java Environment (1) Java Features (4) java interview points (4) java interview questions (4) javajee initiatives (1) javajee thoughts (3) Java Performance (6) Java Programmer 1 (4) Java Programmer 2 (2) Javascript Frameworks (1) Java SE Professional (1) JSP (1) linked list (3) maven (1) Multithreading (16) NFR (1) No SQL (1) Object Oriented (9) OCPJP (4) OCPWCD (1) OOAD (3) Operators (4) Overloading (2) Overriding (2) Overviews (1) policies (1) programming (1) Quizzes (17) references (2) resources (1) restful web service (3) Searching (1) security (10) Servlets (8) Servlets and JSP (31) Sorting (1) source code management (1) spring (4) spring boot (1) Spring Examples (1) Spring Features (1) spring jpa (1) Stack (1) Streams & IO (3) Strings (11) SW Developer Tools (2) testing (1) troubleshooting (1) user interface (1) vxml (8) web services (1) Web Technologies (1) Web Technology Books (1) youtube (1)