AngularJS

From Leo's Notes
Revision as of 07:02, 10 September 2017 by Leo (talk | contribs) (Created page with " == Version 2 == 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. N...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This page was last edited on 10 September 2017, at 07:02.

Version 2

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