Your curiosity may have led you into opening app.component.ts or quote.component.ts. Don't worry if they seemed overwhelming; we will discuss components extensively in this book (especially, in the next two chapters).

Components are the heart of any Angular project. They are the core building blocks, and every other feature is just meant to support components. The files mentioned contain Angular components written in TypeScript. This is what app.component.ts looks like:

import { Component } from '@angular/core';  @Component({    selector: 'app-root',    templateUrl: './app.component.html',    styleUrls: ['./app.component.css'] }) export class AppComponent {  title = 'app'; } 

A component is a decorated class with a template. The type ...

Get TypeScript 2.x for Angular Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.