Thanks. Looking for some closure on the conversation on the accepted answer here (stackoverflow.com/questions/54734636/…). Not sure why the content projected child is available in the parent ngOnInit hook.
okay so i have a laptop plugged into an external monitor with a much higher dpi/resolution. when I open my webpage on the external monitor (browser is IE11, unsure if important), it uses the window.innerHeight/innerWidth dimensions from the laptop screen... causing the webpage size to be significantly scaled down.
Suppose in my case that we don't have any cart state. Maybe instead of addToCart, you can think of the button click as a markProductAsFavorite or something?
Given my current state structure, they need to know how to find the corresponding Product in my state. The index parameter I am passing to addToCart allows each reducer to find the corresponding Product. No, I do not have a Cart reducer... let me think about how that would work.