December 2017
Beginner
372 pages
10h 32m
English
Decorators are a TypeScript-specific concept at the moment, although they are in a stage two proposal for JavaScript (https://github.com/tc39/proposal-decorators). The decorator is one of the structural design patterns from the Gang of Four, which implies adding additional responsibility to an object. In TypeScript, they are experimental features and we need to enable them in the compiler configuration (tsconig.json). TypeScript allows the use of decorators on classes, properties, methods, and accessors. Decorators are commonly used in Angular and we will see the examples in the upcoming chapters.
Read now
Unlock full access