October 2017
Intermediate to advanced
280 pages
6h 50m
English
JavaScript is a dynamic language that allows us to easily modify and/or alter the behavior to suit the programs we write. Decorators are a proposal to ES2016, and the design document at https://github.com/wycats/javascript-decorators describes their work as follows:
Their syntaxes are quite similar to the annotations in Java, and they are even closer to the decorators in Python. ES2016 decorators are used commonly in Angular to define components, directives, and pipes, and to take advantage of the dependency injection mechanism of the framework. Most use cases of decorators involve altering the behavior to a predefined ...
Read now
Unlock full access