What is the difference between AngularJs and Angular 2 ?
First thing, Angular 2 is not the upgrade of angular 1. Angular 2 is completely rewritten.
Angular 2 is using Typescript which is super set of javascript (It doesn’t mean only typescript, dart also).
Angular 1.x was not built with mobile support in mind, where Angular 2 is mobile oriented.
Angular 1 core concept was $scope, and you will not find $scope in angular 2.0. Angular 2 is using zone.js to detect changes. See the below code.
Angular 1.x controllers are gone. We can say that controllers are replaced with “Components” in Angular 2.
First thing, Angular 2 is not the upgrade of angular 1. Angular 2 is completely rewritten.
Angular 2 is using Typescript which is super set of javascript (It doesn’t mean only typescript, dart also).
Angular 1.x was not built with mobile support in mind, where Angular 2 is mobile oriented.
Angular 1 core concept was $scope, and you will not find $scope in angular 2.0. Angular 2 is using zone.js to detect changes. See the below code.
Angular 1.x controllers are gone. We can say that controllers are replaced with “Components” in Angular 2.
Related Topics:
EmoticonEmoticon