Angular Versions

Angular 2:

· Released in 2016. Modern, faster, and highly scalable framework

· Equally useful framework for web, mobile, and desktop apps

· Web components based architecture

· Supports Hierarchical Dependency Injection

Why we don’t have Angular 3?

The angular router was already in v3 and releasing angular 3 with router 4 will create confusion

— To avoid this confusion they decided to skip the version 3 and release with version 4.0.0 so that every major dependency in the MonoRepo are on the right track.

Angular 4:

· Released in 2017 . Reduce the size of the generated bundled code up to 60%

· Animation moved out to a separated package @angular/animations

· Supports for if/else statement

· Supports for email validatorElse block in *ngIf introduced:

Angular 5:

· Released 1st November 2017.

· Make AOT the default. Angular 5 supports TypeScript 2.3 version.

· Easier to build progressive web apps

· Build optimizer: It helps to removed unnecessary code from your application

· Type checking in templates

· Support for Internationalized Number, Date, and Currency Pipes

· An update to Httpclient. a new module called HttpClientModule is introduced

· Zone speed improvements

· New Router Lifecycle Events

· Angular Universal State Transfer API and DOM Support — By using this feature, we can now share the state of the application between the server side and client side very easily.

Angular 6:

Released on April 2018. This release is focused less on the underlying framework, and more on tool-chain and on making it easier to move quickly with angular in the future. No major breaking changes.

Remove support for <template> tag and “<ng-template>” should be used.

Registering provider: To register new service/provider, we import Service into module and then inject in provider array. e.g:

// app.module.ts

import {MyService} from './my-service';

...

providers: [...MyService]

...

initial release of Angular Elements which gives us ability to use our angular components in other environments like a Vue.js application

CLI Changes are also done and added new commands.

Angular 7:

Released on October 2018

This is a major release and expanding to the entire platform including-

— Core framework,

— Angular Material,

— CLI

CLI Prompts: The CLI will now prompt users as when running common commands likeng new or ng add @angular/material with the intend of getting aid for building a new project using SCSS.

Angular 7 added a new compiler — Compatibility Compiler (ngcc)

Angular 7 now supporting to TypeScript 2.9.

Angular 8:

Releasing March/April 2019. Added Support for TypeScript 3.2

Added an ng-new command that builds the project with Bazel. Performance improvement on Core