Introducing TypeScript

In the previous chapter, we built our very first component and we used TypeScript to shape the code scripts, which gave form to it. All the examples included in this book use its syntax. As we will see later in this book, writing our scripts in TypeScript and leveraging its static typing will give us a remarkable advantage over the other scripting languages.

This chapter is not a thorough overview of the TypeScript language. We will just focus on the core elements of the language and study them in detail on our journey through Angular. The good news is that TypeScript is not all that complex, and we will manage to cover most of its relevant parts.

In this chapter, we will:

  • Look at the background and rationale behind TypeScript
  • Discover online resources to practice while we learn
  • Recap on the concept of typed values and how to represent them
  • Build our own types, based on classes and interfaces
  • Learn to better organize our application architecture with modules
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset