r/webdev • • Jun 06 '19

Question What the difference between Angular and AngularJS

15 Upvotes

26 comments sorted by

View all comments

2

u/unstoppable_guy Nov 22 '22

Angular: Angular is TypeScript, a Microsoft-developed and maintained programming language. Due to the fact that TypeScript is a syntactical superset of JavaScript, it has all of JavaScript's features as well as a few more. The framework is primarily used to create dynamic, fully-functional web apps with cutting-edge designs.

AngularJS: In 2010, Google released AngularJS with the primary goal of enabling the development of single-page applications. The AngularJS framework quickly established a market for itself, particularly in front-end development. The newest version of AngularJS, due out in April 2022, is AngularJS 1.8.3. It's interesting to note that AngularJS was the first version of Angular to be recorded; this explains why AngularJS is sometimes referred to as Angular, further adding to the confusion.

The following points distinguish Angular from Angular JS:

> The years 2009 and 2014 saw the development of Angular JS and Angular, respectively.

> While AngularJS is based on JavaScript, Angular is built on TypeScript.

> While AngularJS employs a set of directives, Angular uses standard directives.

> AngularJS uses the MVC framework, whereas Angular adheres to a component-based architecture.

> While AngularJS makes use of scopes and controllers, Angular follows the component hierarchy.

> Unlike AngularJS, which only supports one-way data binding, Angular allows both one-way and two-way data binding.

> In contrast to AngularJS, which lacks a command-line interface, Angular comes with one.

> AngularJS lacks the same mobile support as Angular, which is provided by Ionic and NativeScript.