Passing Blazor Component Variable Scope
I have a Blazor Component (.razor file) that has an object of type Product. The Object is passed in as a parameter and is correct correct at the top but inside of the modal, the value of Product is always the first item in my database. I was wondering how I can get the value to carry over to my modal. The full component is below and I am using .NET 8.
How to pass an object from Layout to page in Blazor .Net 8
I have a Blazor .Net 8 WebApp application with perpage rendering. My layout page is in the server app and is just a plain SSR with no interactivity.
I have a scoped service where I set properties from the OnInitializedAsync method in the layout. My page is in the client app and has InteractiveAuto with prerendering = false. In the client page the scoped service does not have any properties set.