February 2019
Beginner
694 pages
18h 4m
English
Before we begin, bear in mind that in order to use decorators, our tsconfig.json file must be configured correctly, as follows:
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"lib": [
"es6"
],
"strict": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
}
}
Here, we have included the "experimentalDecorators" : true option, as well as the "emitDecoratorMetadata" : true option in order for our code to use decorators, as we did in Chapter 4, Decorators, Generics and Asynchronous Features. We have also defined that we wish to use ES6 as our compile target, and have included the es6 library in our lib definition. We will also need to install the reflect-metadata ...
Read now
Unlock full access