Exploring Angular’s Evolution: A Comprehensive Comparison

Gaurav Rathee
Nerd For Tech
Published in
2 min readJan 20, 2023

Angular is a TypeScript-based, free and open-source web application framework led by the Angular Team at Google and by a community of individuals and corporations. Angular first version was released on September 14, 2016.

Angular v2 vs AngularJS

Angular 2.0 was announced at the ng-Europe conference 22–23. October 2014. The final version was released on September 14, 2016. This was complete rewrite of AngularJS.

it was designed with multiple changes

  1. Angular does not have a concept of “scope” or controllers; instead, it uses a hierarchy of components as its primary architectural characteristic.
  2. Angular has a different expression syntax, focusing on "[ ]" for property binding, and "( )" for event binding
  3. Modularity — much core functionality has moved to modules
  4. Dynamic loading
  5. Asynchronous template compilations
  6. Iterative callbacks provided by RxJS.
  7. Support to run Angular applications on servers.
  8. Angular 2 is 20 kb less than Angular 1
  9. Angular 2 is not an upgrade of Angular 1 but it is completely rewritten.
  10. Angular 1.x was not built with mobile support in mind, where Angular 2 is mobile-oriented.
  11. Angular 2 uses Hierarchical Dependency Injection system which is the major performance booster of it.
  12. Angular 2 implements unidirectional-tree based change detection which, again, increases the performance.
  13. Angular 2 provides more choice for languages. You can use any of the languages from ES5, ES6, TypeScript or Dart to write Angular 2 code while Angular 1.x had ES5, ES6, and Dart only. Addition of TypeScript is a great step as TypeScript is an awesome way to write JavaScript.
  14. Angular 2 uses camelCase syntax for built-in directives. For example, ng-class is now ngClass and ng-model is now ngModel
  15. In Angular 1.x, we can define a service via 5 different ways.
    Factory
    Service
    Provider
    Constant
    Values
    And, in Angular, class is the only way to define a service
  16. SEO Friendly: With Angular v1.0 developing the search engine friendly Single Page Applications was the major difficulty. But this bottleneck was eliminated in Angular v2

Migrating from AngularJS to Angular is not too easy. you can refer angular official document for migration on the angular official guide

Now we have learned the difference between angularJS and Angular. Thanks for reading :)

If you like this article press 👏 the clap button 1000 times or as many times as you want. Feel free to ask a question if you have any. Thanks a lot for reading!

Before You Go

Thanks for reading! If you want to get in touch with me, feel free to reach me at gauravrathee0@gmail.com or my LinkedIn Profile. Also, feel free to explore my profile and read different articles.

--

--

Gaurav Rathee
Nerd For Tech

I write about my learnings in the field of computer science i.e application development , Data science, Artificial Intelligence etc