Version 2[edit | edit source]

AngularJS 2 is a complete rewrite of AngularJS version 1. There are dramatic changes from the first version stemming mostly from a new way to organize apps. Notable changes are:

  • It's written in TypeScript. This requires the code to be 'compiled' to normal javascript and typically requires node/npm tools along with the typescript converter (see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html)
  • It's using components and the new templating system that comes with TypeScript so $scope and controller are no longer used

Libraries are imported as part of a AngularJS 2 app can be found at https://angular.io/api

An Angular project is a combination of modules put together

See Also[edit | edit source]