Open In App

Difference between Angular 4 and Angular 5

Last Updated : 30 Jul, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

Angular 4: Angular 4 was launched 5 years after the official release of AngularJS. Angular 4 is a JavaScript-based open-source framework for building web applications in JavaScript, HTML, and TypeScript, which is a superset of JavaScript. Angular 4 was launched in the March 2017 and supports earlier TypeScript versions such as TypeScript 2.2 and 2.1.

Angular 5: Angular 5 is a later version of the AngularJS that came after Angular 4, developed for creating apps faster, as it removes unnecessary codes. Angular 5 is more advanced and has its own set of features like build optimizer, compiler improvements, and code-sharing feature. It was launched on 1st November 2017.

Difference between Angular 4 and Angular 5:

S.No. Angular 4 Angular 5
1. Angular 4 was launched in the March 2017. Angular 5 was launched in the November 2017.
2. Angular 4 supports earlier TypeScript versions such as TypeScript 2.2 and 2.1. Angular 5 only supports TypeScript 2.5.
3. Angular 4 does not provide the option to restrict the unneeded white spaces, tabs and newlines. While Angular 5 provides the option to restrict tabs, whitespaces and newlines.
4. Angular 4 does not have the feature of build optimizer. Angular 5 has the feature of build optimizer.
5. Angular 4 does not provide support for multiple naming scheme. Angular 5 provides support of multiple names for both directives and components.
6. In Angular 4, traditional approach is used for tracking life cycle events. In Angular 5, developer can track the route of life cycle events with new router which provides a more realistic tracking.

Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads