Skip to content

Commit caee60f

Browse files
emit decorator metadata in es-api
1 parent 4177152 commit caee60f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Chapter 4/inventory-app/src/app/products/products.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class ProductsComponent implements OnInit {
5858
this.productOpen = false;
5959
}
6060

61-
trackById(item) {
61+
trackById(index, item) {
6262
return item.id;
6363
}
6464

Chapter 8/electronic-store/apps/es-api/tsconfig.app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"outDir": "../../dist/out-tsc/apps/es-api",
5-
"types": ["node"]
5+
"types": ["node"],
6+
"emitDecoratorMetadata": true
67
},
78
"exclude": ["**/*.spec.ts"],
89
"include": ["**/*.ts"]

0 commit comments

Comments
 (0)