Angular2 Fundamentals (ES2015, TypeScript, CLI, Classes & Modules)
Node & NPM
Install:
Ensure you have Node 6.9+ and NPM 3+ installed
Explain:
Node.js really is just another context: it allows you to run JavaScript code in the backend, outside a browser.
Node Package Manager (node has global dependencies and local dependencies)
https://www.npmjs.com/package/@covalent/core
Angular CLI
Install:
Uninstall previous Angular CLI npm uninstall -g angular-cli
Clean npm cache npm cache clean
Install Angular CLI npm i -g @angular/cli@latest
Explain:
TypeScript
Install Typescript 2.0:
npm i -g typescript
Install VS Code
Explain:
TypeScript is a superset of ES2015 and gives us:
- typings
- ...
ES2015 gives us:
- imports
- classes
- ...
Linting and Testing
Install:
Install TSLint npm install -g tslint
Install Protractor for e2e testing npm install -g protractor
Update Webdriver webdriver-manager update and ./node_modules/.bin/webdriver-manager update
Explain: