Upon successful submit, hide the form and display a success message. Consider the following requirement:Ī user can submit a feedback form, with three fields: Email Address, Rating (1 through 10), and a Comment. To illustrate, let's create a UserFeedback feature in our application. Binding the form fields directly to a read-only State object would not work. NET functionality in the browser as well as on the server.Ī specific example is using an AspNetCore EditForm, binding it a Model class, and validating it automatically, both in the browser and on the server.ĮditForm, however, is based on two-way databinding to its Model. So far we've spent a lot of time taking advantage of the unidirectional data flow inherent in the Flux pattern.īut one of the major benefits of using Blazor is being able to take advantage of your C# classes and. This is the fifth in a short series of blog posts where I will go beyond the introductory level and dig a bit deeper into using the Fluxor library in a Blazor Wasm project.
0 Comments
Leave a Reply. |