Saturday, 13 February 2016

Angular 1 VS Angular 2



Angular 2 Angular 1
Performance With ultra fast change detection and immutable data structures, Angular 2 promises to be both faster and more memory efficient Angular 1 had some performance issue with a big applications.
Data binding By default Angular 2 has a uni-directional data flow, means one-way data binding. That doesn't mean you can't do two way data binding. Angular 2 support two way binding too Two-way data binding feature is default in Angular 1.
$scope Angular 2 finally kills it off, as properties are bound to components. $scope is the heart of controller in Angular 1.
UI Angular 2 adopted component-based UI like React do. Angular 1 depends on Controller and Directive for there UI.
New Base Language Angular 2 is written entirely in Typescript and meets the ECMAScript 6 specification. Angular 2 is written entirely in Javascript and meets the ECMAScript 5 specification.
Mobile Support Angular 2 was designed to be better and ready for any thing coming its way that is mobile oriented. Angular 1.x was not built with mobile support in mind, but fortunately frameworks like Ionic found favor in them.

Thanks for reading..

Final thing i want to say that...

Web Components are the future of the Web and if you are not planning to accept that yet, then you are driving on the wrong lane.

1 comment: