Why Angular2 is Used? - Part2

Published: 17 April 2019
on channel: Code With Rohini
173
12

To learn Angular2 from scratch and most useful for beginners Please see the link below:
   • What is AngularJS and What is Angular...  

To watch What is AngularJS and Angular2 please see the below link:
   • What is AngularJS and What is Angular...  

Angular1 was the most popular javascript framework.
Many developers are already using Angular 1, so why should we use Angular 2.
Angular 2 is not a simple upgrade from angular 1. Angular 2 is completely rewritten, so it has lot of improvements when compared with Angular 1. Let's look at a few of these improvements.

Performance : From a performance standpoint, Angular 2 has faster initial loads, change detection, and improved rendering time. Not just performance, we also have improved modularity, Dependency injection and testability. Angular 2 is 5 times faster compared to AngularJS 1.
Mobile Support : Angular 1 was not built for mobile devices. It is possible to run Angular 1 on mobile but we will have to use other frameworks. Angular 2 on the other hand is designed from the ground up with mobile support. Mobile device features and limitations like touch interfaces, limited screen real estate, and mobile hardware have all been considered in Angular 2. So with Angular 2 we can build a single application that works across mobile and desktop devices.

Component Based Development : Component based web development is the future of web development. In Angular 2, "everything is a component". Components are the building blocks of an Angular application. The advantage of the component-based approach is that, it facilitates greater code reuse. From unit testing standpoint, the use of components make Angular2 more testable. We will discuss what a component is and how to build components with examples in detail, in our upcoming videos.

More language choices : There are several languages that we can use to develop Angular applications.
1. ECMAScript 5
2. ECMAScript 6 (also called ES 2015)
3. TypeScript etc.

Angular 2 itself, is built using TypeScript. TypeScript has great support of ECMAScript 6 standard.
What is ECMAScript : The JavaScript language standard is officially called ECMAScript.
TypeScript is supported by several other editors like
1. Visual Studio Code
2. Eclipse
3. WebStorm
4. Atom
5. Sublime Text etc.


Watch video Why Angular2 is Used? - Part2 online, duration hours minute second in high quality that is uploaded to the channel Code With Rohini 17 April 2019. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 173 times and liked it 12 visitors.