At the moment i am building a ASP.NET app with blazor woven in. I can render my blazor components with the Html.RenderComponentAsync<MyComponent>() function included.
The problem is, is that i want to be able to get event from this components so i can react to them outside of the component itself.
Usually in blazor you would add this to your child component code section like this,
[Parameter] public Action<string> addPressed {get; set;}
and then handle it in the parent component like so
<MyComponent addPressed="DoSomethingOnPressed"/>
How would i got about that when my component was instead instantiated through RenderComponentAsync like this
@(await Html.RenderComponentAsync<MyComponent>())
Thanks in advance
@(await Html.RenderComponentAsync<MyComponent>( addPressed = DoSomethingOnPressed))- Mister Magoo