Start at the beginning
ECMAScript (ES)
ES3
ES5
ES 2015 (ES6)
- Need to be transpiled
ES5
- Runs in the browser
- No compile required
ES 2015
- Lots of new features (classes, let, arrow, etc...)
Typescript
- Superset of JavaScript
- Can be strongly typed
- Great IDE tooling
Open source language
Superset if Javascript
Transpiles to plain JavaScript
Strongly typed (TS type declarations files (*.d.ts)
Class-based object-orientation
Typescript Playground
http://www.typescriptlang.org/play/
npm
Node package manager
Command line utility
Installs libraries, packages and applications
https://www.npmjs.com/
Manually perform each step
www.angular.io / Quick start
Download the results of these steps
https://github.com/angular/quickstart
Angular CLI
https://github.com/angular/angular-cli
Starter files
https://github.com/firehist/angular2-courses
Augury
Angular Batscanner
Namespaces
Code organisation
Angular 1 Modules
TypeScript Modules
ES2015
Modules
Angular 2 Modules
product.ts
export class Product {
}
product.js
function Product() {
}
product-list.ts
import { Product } from
'./product'
Component
Root
Angular Module
Component
Component
Component
Feature
Angular Module
Component
Component
Component
Component
Shared
Angular Module
Component
ES Modules
Code files that import or export something
Organize our code files
Modularize our code
Promote code reuse
Angular Modules
Code files that organize the application into blocks of functionality
Organize our application
Modularize our application
Promote application boundaries
Web Browser
Web Server
URL Request (mysite.com)
Response
index.html
JavaScript
Selecting a Language
Selecting an Editor
Setting up an Angular 2 Application
About Modules
App
Component
Welcome
Component
User List
Component
User Detail
Component
Star
Component
index.html
User Data
Service