I'm trying to execute your shopping cart application but i'm getting error please help to resolve the bugs..
ERROR in src/app/services/products.service.ts:14:8 - error TS2339: Property 'map' does not exist on type 'Observable<Product[]>'.
14 .map(_ => {
src/app/services/cart.service.ts:29:36 - error TS2339: Property 'map' does not exist on type 'BehaviorSubject<Product[]>'.
29 return this.itemsInCartSubject.map((items: Product[]) => {
ERROR in Unexpected value 'CartService in D:/Proj/src/app/services/cart.service.ts' imported by the module 'AppModule in D:/Proj/src/app/app.module.ts'. Please add a @NgModule annotation.
Encountered undefined provider! Usually this means you have a circular dependencies. This might be caused by using 'barrel' index.ts files.
I'm trying to execute your shopping cart application but i'm getting error please help to resolve the bugs..
ERROR in src/app/services/products.service.ts:14:8 - error TS2339: Property 'map' does not exist on type 'Observable<Product[]>'.
14 .map(_ => {
ERROR in Unexpected value 'CartService in D:/Proj/src/app/services/cart.service.ts' imported by the module 'AppModule in D:/Proj/src/app/app.module.ts'. Please add a @NgModule annotation. Encountered undefined provider! Usually this means you have a circular dependencies. This might be caused by using 'barrel' index.ts files.