File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ import { IProduct } from './product';
9
9
providedIn : 'root'
10
10
} )
11
11
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';
12
15
private productUrl = 'api/products/products.json' ;
13
16
14
17
constructor ( private http : HttpClient ) { }
Original file line number Diff line number Diff line change 6
6
"sourceMap" : true ,
7
7
"declaration" : false ,
8
8
"downlevelIteration" : true ,
9
+ "emitDecoratorMetadata" : true , // Needed for Stackblitz
9
10
"experimentalDecorators" : true ,
10
11
"module" : " esnext" ,
11
12
"moduleResolution" : " node" ,
Original file line number Diff line number Diff line change 6
6
"sourceMap" : true ,
7
7
"declaration" : false ,
8
8
"downlevelIteration" : true ,
9
+ "emitDecoratorMetadata" : true , // Needed for Stackblitz
9
10
"experimentalDecorators" : true ,
10
11
"module" : " esnext" ,
11
12
"moduleResolution" : " node" ,
You can’t perform that action at this time.
0 commit comments