Tech Tutorials Database
GeekArticles Microsoft Microsoft.NET
 

Load components dynamically in Blazor

 
Author: dotnetbips.com
Category: Microsoft.NET
Comments (0)

Blazor apps consist of one or more Razor components that reside in .razor files. Usually, you place a component in a page at development time. However, at times you may want to load components on the fly based on some logic. That means you know the component to be loaded at the development time. That will be known only during run-time. Luckily, Blazor provides what is known as Dynamic Component that can be used to deal with such situation. In this article you will learn how Dynamic Component can be used in a Blazor Server app.

Read More...




Sponsored Links




Read Next: Drag-n-Drop file upload in Blazor using JS interop and minimal API (Part 1)



 

 

Comments