A short introduction, how to use the AngularJS Framework with the trending language TypeScript. It includes a short intro to TypeScript, DefinitelyTyped and of course some example code.
2. TypeScript
● TypeScript is a typed superset of
JavaScript that compiles to plain
JavaScript (ECMAScript3-compatible).
● TypeScript adds optional types, classes,
modules and generics
● (only) compile-time type checking
3. TypeScript
you can
● use existing JavaScript code
● incorporate popular JavaScript libraries
● call it from other JavaScript code
4. TypeScript
● can be installed as a node.js package
npm install -g typescript
● compiled with TypeScript compiler
tsc helloworld.ts
● reference files with
/// <reference path='path/to/file.ts' />
5. DefinitelyTyped
● repository for high-quality TypeScript
type definitions
● type definitions for all common
frameworks and libraries
● has its own package manager for
definitions (tsd)