Overview of Angular2

Kailash Chandra Behera | Sunday, April 23, 2017

Introduction

In my previous couple of article we had discussed about AngularJS. This blog gives a few overview about Angular2.

Getting Started

Angular 2 is an open source JavaScript framework to build web applications in HTML and JavaScript and has been conceived as a mobile first approach.
It is mobile-oriented, you can say it is also a framework for mobile apps. But mobile is the hard bit that we will get right first

Angular2 uses TypeScript which is a primary language for developing of Angular applications. The TypeScript is a super set of JavaScript which is migrated to TypeScript and code written in TypeScript makes less prone to run time errors.




In Angular 2, AngularJS scope,controller and structural directive such as ng-repeat replaced with Zone.js, Components and ngFor. Syntaxes have been changed in Angular2 as well, for example local variables in Angular2 is defined using # (hash) as prefix and ng-model of Angularjs which is used for two way data binding now changed to ngModel.

Angular 2 is using Hierarchical Dependency Injection system which is major performance booster. Dependency Injection which can be utilized to go in classes like c# and administrations with particular arrangement (over the application) or pass them to be named and utilized under an alternate name. Yet, you can in any case utilize your ES6 modules for anything that doesn’t fit the DI plan. You likewise utilize need to infuse orders for templating.




it implements unidirectional tree based change detection which again increases performance . As per ng-conf meetup, angular 2 is 5 times faster as compared to angular 1.

Summary

Hopes this article gives little idea bout Angular. Please give like if this article is helpful to you, which will encourage me to write more and more articles.

Thanks