What is the difference between using @bind and @bind-value?

In Blazor, there is no significant difference between using these two attributes. The @bind attribute is a shorthand of the @bind-value attribute and its delegate will trigger the ValueChanged event of the component.The usage of both the @bind and @bind-value attributes in the following code examples are functionally equivalent. @bind @bind-value

How can I bind a drop-down list in Blazor WebAssembly?

We can bind a drop-down list in Blazor WebAssembly using the <select> tag and bind the values to the drop-down list using the @bind attribute in the tag. In the following code example, we have bind a country list along with its country codes. On changing the dropdown list, the codes corresponding to the country will appear below. [Index.razor] Note: We also have our Syncfusion Dropdown List component. Please refer to the demo link for more information about our product. View Sample in GitHub

How does Blazor WebAssembly work?

Blazor WebAssembly can run client-side C# code directly in the browser. The Blazor application, as well as its dependencies and the .NET runtime, are all downloaded to the browser. The application runs on the browser’s UI thread directly. The same method handles both UI notifications and event management. We can re-use code and libraries from the server-side parts of the application while .NET runs on WebAssembly.

How do you use MVC in Blazor?

Using MVC in a Blazor application is not yet possible, but we have an option to migrate an existing ASP.NET MVC application to a Blazor Server application.

How do I get access to the browser history in Blazor?

Browser history can be accessed in Blazor using the window’s popstate event, which is fired when the user navigates the session history. We use the history API to get the history changes in the browser, and we can manually move to a specific page using back(), forward(), go(). When routing takes place in the application or browser, you can use the following code to store the current location: Window.history.pushState({ prevUrl: window.location.href }, null, newpath) To retrieve the previous URL, use the following code in your new route: Window.history.state.prevUrl Refer to this link for more information about the popstate event.Refer to this link for more information about the history API. View Sample in GitHub