List some difference between AngularJS and Angular 2?


Posted On: Feb 22, 2018


Difference between AngularJS and Angular 2

AngularJSAngular 2
Angular js or Angular 1.x is based on MVC ArchitectureAngular 2 is based on service/ components
Javascript is used to write applications in Angular js.Typescript (a superset of javascript) is used to write an application in Angular2.
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
web applications.
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 is removed in Angular 2. You need to call Angular2 bootstrap method to bootstrap your application.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions