-
Typescript
npm install -g typescript
-
Typescript Definitions
npm install -g tsd
tsd query angular2 --action install
tsc --watch -m commonjs -t es5 --emitDecoratorMetadata app.ts
/// <reference path="typings/angular2/angular2.d.ts" />
import {Component, View, bootstrap} from 'angular2/angular2';
From the directory that contains index.html:
npm install -g http-server # Or sudo npm install -g http-server
http-server # Creates a server at localhost:8080
In a browser, visit http://localhost:8080/hello-world.html and http://localhost:8080/index.html
This example uses Traceur and SystemJS, files included