How do I conditionally add Blazor components’ template?
The if statement is used to display a component or fragment conditionally. If the condition evaluates to true, the component will be loaded to the view. Whenever the properties used in the if statement changes, the condition evaluates to either true or false and adds or removes the component to the page. Refer to the following code sample.
How do I get/render the raw HTML from Blazor components?
In Blazor, you can render raw HTML from a component using the MarkupString type. The MarkupString type allows you to render HTML content directly without being sanitized or escaped by the framework. Here’s how you can use MarkupString to render raw HTML in a Blazor component: View Sample in GitHub
How do I bind the DateTime value with a specific format?
You can bind a specific format for the DateTime value by using the @bind:format attribute of the INPUT element and assign it with the supported date format string value. Refer to the following code sample.
How do I format the DateTime and numbers to the local culture?
To format the DateTime and numbers to the local culture, use the @bind:format attribute of the INPUT element that supports the date format string value . Refer to the following code sample.
How to change the loading text in Blazor WebAssembly application?
You can change the loading text in Blazor web assembly application using <app> tag in index.html page. In the following example, I have changed the loading text to compiling.