As I delve into Angular2 tutorials, each section provides valuable insights. However, my progress came to a halt when I encountered the tsconfig.json
file and noticed the line: "target": "es5"
. This setting indicates that I am compiling to ECMAScript 5.
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
}
}
At present, I am utilizing ES5. The question arises - should I modify the target to "es6"
or "es7"
? What advantages come with using the newer versions?