Home > Software engineering >  I'm new to Angular, I'm trying to figure out where I'm wrong
I'm new to Angular, I'm trying to figure out where I'm wrong

Time:05-03

I keep getting this error and I'm not sure what to do?[1] [1]: https://i.stack.imgur.com/mQ3Xo.png

CodePudding user response:

you should type the array

private cartItems = [] as Product[];
  • Related