Chapter 1: The Problem with Mutable State in Angular





Introduction: Why Functional Programming?


Imagine joining a new project. You open the codebase, and this is what greets you:



private client!: Client;
private bucket!: Bucket;
private products!: Product[];
public ready = false;
public displayData!: ClientWithBucket;






A class...