AngularJS vs. Angular (Old vs. New)

We often use the words AngularJS and Angular interchangeably but there are some differences between the AngularJS (first version) and Angular (new version).

Below are some facts about AngularJS and Angular

  • AngularJS was the original Angular release way back in 2009.

  • Angular 2 was released on September 2016. Google announced development of Angular 4 in September 2014 and it went into beta in January 2015. Angular 4 was released in March 2017. Angular 5 was released in November 2017.

  • Angular is a javascript framework for single page applications also known as SPAs. It is called SPA because there are no saperate pages (html, jsp etc) are created but different pages are rendered dynamically using javascript.

  • Semantically Angular 2, 4 and 5 are very similar but they are all very different from the original AngularJS.

  • AngularJS runs on web browsers, and web browsers run JavaScript, so, JavaScript is the platform for AngularJS and Angular.

  • AngularJS and Angular have their own module system. Modules are nothing but small units of independent, reusable code.

  • Controllers Vs Components – AngularJS uses controllers to represent a widget in the user interface. Angular uses Component object instead of controllers.

  • AngularJS uses dependency injection. Angular also provides dependency injection but dependencies are injected via constructor using Constructor Injection pattern.

  • Forms – AngularJS code works with forms, data input, and validation, but Angular works with form modules.

  • Templates – AngularJS and Angular both use HTML templates.


Leave a Reply

Your email address will not be published. Required fields are marked *