Archives
-
Pass Parameters to Blazor Components
Blazor apps consist of one or more components. A component can receive data from an external source through parameters. In this article you will learn to add parameters to a Blazor component. You will also learn to various ways of setting the parameter values. Begin by creating a new Blazor Server App project in Visual Studio.
-
Separate UI and Code in Blazor
Blazor apps consist of one or more components. Components reside in .razor files and consist of UI markup and C# code. When you create a new Blazor server or WebAssembly project it stores component UI and code in a single file. However, at times this single file approach might not be adequate. Luckily, you can separate your UI markup and C# code easily. This article shows how.