This course uses a demo-first approach to get you familiar with TypeScript. You will cover all of the main language features of TypeScript by building software for a vending machine serving drinks and candy.
This compact course will introduce you to TypeScript using a practical, demo-first approach. In this course, A Practical Start with TypeScript, you will cover all of the main language features in TypeScript, enabling you to write structured browser code for your app. First, you'll go over the foundations and basics of the TypeScript language, getting you prepared to write it. Next, you will see how to use inheritance, polymorphism, and interfaces in TypeScript. Finally, you will get an explanation of several options to further structure your code, especially with bigger projects. By the end of this course, you'll have the knowledge to feel ready to write your own TypeScript app.
Understanding the Language Basics This module is about getting to know the TypeScript language basics. After watching this module, you will have a good understanding of the TypeScript syntax, and you can apply built-in, as well as create custom types. At the end of the module, we will have a working vending machine that is able to accept quarters, and it can get you a can of soda.
Applying Object Orientation In this module I'm covering some more principles of object orientation. At the end of the module you will see a vending machine operating with more coin types, product categories, and products. First, I'll explain what problem polymorphism solves, so you can recognize it in action. We look at class inheritance, which enable base classes, which can be abstract. And lastly, you'll learn about applying interface types. We will apply all these concepts to the vending machine app. Let's continue to work on our coins in the next clip.
Structuring Code You're watching the fourth module of the Getting Started with TypeScript course. Here's what I'm going to talk about; the global namespace isn't really a feature of TypeScript, but it's important to understand how it works. You'll see how to group your code when an application gets larger with namespaces and modules. The TypeScript language feature called Generics can save you many lines of code. And finally, something that's experimental in TypeScript for now, but important to understand if you're going to work with TypeScript in combination with Angular 2: Decorators. The global namespace is up next.