In this article we are going to discuss difference between AngularJS and Angular 2 in detail. Please read our previous article where we gave a brief introduction to the angular framework.

You can see the below in tabular format we differentiate between AngularJS and Angular 2.

Angular JSAngular 2
Released by Google in the year 2010.Released in Sept 2016.
JavaScript-based framework for creating SPA.Complete re-write of AngularJS version.
Still supported but no longer will be developed.It’s updated version regularly released because of Semantic Versioning.
The architecture of AngularJS is based on MVC.The architecture of Angular 2 is based on service/controller.
AngularJS was not developed with a mobile base in mind.Angular 2 is a mobile-oriented framework.
AngularJS code can write by using only ES5, ES6, and Dart.We can use ES5, ES6, Typescript to write an Angular 2 code.
Based on controllers whose scope is now over.Nowadays, the controllers are replaced by components, and Angular two is completely component based.
Factory, service, provider, value and constant are used for servicesThe class is the only method to define services in Angular2
Run on only client-sideRuns on client-side & server-side
ng-app and angular bootstrap function are used to initializebootstrapmodule() function is used to initialize


So far in this article we have discussed difference between AngularJS and Angular 2 with details. if you have any feedback then please free to write to us.

Pin It on Pinterest

Share This