Passing Javascript values to ASP.NET Core View components

added by DotNetKicks
1/24/2019 6:59:18 AM

2 Kicks, 259 Views

In this post, I show how an ASP.NET Core MVC view can send a Javascript parameter value to an ASP.NET Core view component. Invoking a view component in the view using '@await Component.InvokeAsync' will not work, as this is rendered before the Javascript value has been created.