How to use Typescript on your Angular Application and Be Happy
summary
Argues that TypeScript + Angular catches errors earlier and is easy to adopt by renaming .js to .ts and compiling with tsc, shows a live TodoMVC conversion that defines interfaces for data and scope, implements a class-based service with constructor injection and returns promises, uses definition files from definitelytyped to type Angular and jQuery, compiles to CommonJS or AMD, and wires a continuous build via grunt watch. Notes a demo hiccup and the current inability to type view bindings.
AI-written summary · about
chapters (14)
- 0:00Introduction to talk
- 0:43Why TypeScript over JavaScript
- 2:28TypeScript makes coding easier
- 4:14What is TypeScript
- 5:57TypeScript basics demo
- 7:22Modern TypeScript features
- 8:45ES6 features in TypeScript
- 10:56Definition files for libraries
- 12:00IDE and editor integration
- 12:22Adding TypeScript to Angular
- 16:39Build step and automation
- 17:40Live demo attempt
- 18:45TypeScript vs Dart vs CoffeeScript
- 19:28Q&A and closing
