- 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.
The latest version of Angular 2 gives many advantages over AngularJS 1.x including better performance, lazy loading, simpler APIs, easier debugging and considerably more. AngularJS is open source JavaScript framework that can be of help with utilizing Single Page HTML for declaring dynamic views in web-apps. AngularJS has many core modules that are included within the default framework. Many of these modules have been removed from the core of Angular 2.0, which has sped up the framework's performance.
What are the differences?
- User Input with the Event Syntax
- Better in performance
- Mobile oriented
- Component-based UI
- Controllers & Scope
- & more
To get more detail over the Same , Read here : Difference Between Angular-2and AngularJS-1.x
No comments:
Post a Comment