Posted On: Feb 22, 2018
Difference between AngularJS and Angular 2
|Angular js or Angular 1.x is based on MVC Architecture||Angular 2 is based on service/ components|
|A controller is used to writing logic and interact with Model and view.||In Angular 2 Controllers are totally eliminated and Components take its place.|
|Angular 1 is created for developing Single page web-applications.||In Angular 2 can be used for developing native applications for a mobile platform like React Native as well as interactive|
|Angularjs is easy to set up, you just need to include the angular.js library to start.||Angular 2 is dependent on other modules/ package. It gives little brainstorm to install and run Angular 2.|
|In Angularjs ng-app directive is used bootstrap the app.||ng-app is removed in Angular 2. You need to call Angular2 bootstrap method to bootstrap your application.|
Never Miss an Articles from us.