December 2017
Beginner
372 pages
10h 32m
English
Decorators are a proposed feature in JavaScript, currently in stage two, and will most likely take another year or so to be finalized. In this time, there are chances that the current feature set of decorators may change.
In TypeScript, decorators were introduced in version 1.5. TypeScript transpiles decorators in functions that are exactly what they are. So, we can use decorators today with TypeScript and not worry about compatibility with the browsers.
In TypeScript, decorators are defined as functions, which can then be attached to classes, properties, and methods ...
Read now
Unlock full access