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[];
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[];