/ng2-ts-hello

Hello world for Angular 2 and TS

Primary LanguageJavaScript

Angular 2 starter app written in TypeScript

Use latest TypeScript compiler

TypeScript 1.5 beta includes everything you need. Make sure to upgrade, even if you installed TypeScript previously.

$ npm install -g typescript@^1.5.0-beta

Start up the compiler

$ cd ts-quickstart
$ tsc -w
message TS6042: Compilation complete. Watching for file changes.

Updating the bundles

In the angular repo run gulp build.js copy over the output from dist/bundle to local bundle dir.

.d.ts Typings

The typings in typings/angular2/ are partially autogenerated, partially hand written. All the symbols should be present, but probably have wrong paramaters and missing members. Modify them as you go.

Use a TypeScript-aware editor

We have good experience using these editors: