Skip to content

Commit 77535b8

Browse files
committed
Code changes to support Stackblitz
1 parent 2ff4a1e commit 77535b8

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

APM-Final/src/app/products/product.service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import { IProduct } from './product';
99
providedIn: 'root'
1010
})
1111
export class ProductService {
12+
// If using Stackblitz, replace the url with this line
13+
// because Stackblitz can't find the api folder.
14+
// private productUrl = 'assets/products/products.json';
1215
private productUrl = 'api/products/products.json';
1316

1417
constructor(private http: HttpClient) { }

APM-Final/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"sourceMap": true,
77
"declaration": false,
88
"downlevelIteration": true,
9+
"emitDecoratorMetadata": true, // Needed for Stackblitz
910
"experimentalDecorators": true,
1011
"module": "esnext",
1112
"moduleResolution": "node",

APM-Start/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"sourceMap": true,
77
"declaration": false,
88
"downlevelIteration": true,
9+
"emitDecoratorMetadata": true, // Needed for Stackblitz
910
"experimentalDecorators": true,
1011
"module": "esnext",
1112
"moduleResolution": "node",

0 commit comments

Comments
 (0)