I'm working on an ASP.NET Core MVC project that integrates with Blazor. I have a Blazor component, and I want to pass data from my MVC view to this component. Below is a simplified version of what I have:
MVC View:
@{ ViewData["Title"] = "Home Page"; var data = "testData";}<component type="typeof(mvcTestBlazor.Components.Counter)" render-mode="Server" Data="data" />Blazor Component: @code { [Parameter] public string Data { get; set; }}