I have a quick and simple question. I am using a service called DataStorageServiceService
where I have initialized
shopCartProduct = new Subject<ProductModel[]>();
. Now, I have a component named SingleProductComponent
and I want to send data into the shopCartProduct
as an array. Is it possible for me to interact with the shopCartProduct
like a basic array? In other words, can I store and delete data from it in a typical array-like manner?