Chris, great job mentioning that you can just inject IJSRuntime into your C# Class' constructor. Took me a while to figure that out on my own. I assumed I needed to register it the Startup.cs file, but I guess it is just auto-magically registered for you. Very helpful for folks trying to keep their component files code-free.
Chris, great job mentioning that you can just inject
IJSRuntime
into your C# Class' constructor. Took me a while to figure that out on my own. I assumed I needed to register it theStartup.cs
file, but I guess it is just auto-magically registered for you. Very helpful for folks trying to keep their component files code-free.Great post.
Thanks Ryan, happy it was helpful.