Exploring ES2017 Decorators in JavaScript

0
9
views

With the introduction of ES2015+, and as transpilation has become commonplace, many of you will have come across newer language features, either in real code or tutorials. One of these features that often has people scratching their heads when they first come across them are JavaScript decorators. Decorators have become popular thanks to their use in Angular 2+. In Angular, decorators are available thanks to TypeScript, but they are due to be part of the ES2017 language update due out later this year. Let’s take a look at what decorators are, and how they can be used to make your…
Exploring ES2017 Decorators in JavaScript