Modern Angular Design PatternsBuy the book
PreviousNext

Chapter 2: TypeScript Patterns for Angular

Strong typing, OOP constructs, and advanced TypeScript features for maintainable Angular apps.

  • Builder
  • Command
  • Decorator
  • Prototype
  • Strategy
  • Advanced types

What you can try in this demo

Twenty-three demos cover TypeScript as Angular uses it: static typing, interfaces, generics, mapped and conditional types, and type guards. You can run the Builder, Prototype, Factory, Strategy and Command patterns, including a Command version with undo and redo stacks, and try custom class, method and property decorators.

This demo is chapter 2 of Modern Angular Design Patterns. The book walks through the code behind it.

Buy the book