Convert Bootstrap Template to Blazor (Part 5)
This is part 4 in my 7-part series on how to move a free Bootstrap Template and make a Blazor application out of it. You can read about the other post here: 1. Part 1 – Create project and Copy over assets 2. Part 2 - Navigation 3. Part 3 – Header and Footer 4. Part 4 – About and Copyright With building this component there are a couple of new concepts that we get to deal with. We can break down what we need to do into these steps: Create a contact data model with data annotations Convert the current form into to a Blazor form component Add the Submit button handler Create a service to handle the submit Data Model The fields we need are listed above, we just need to determine the validation rules. Here is what we decided: Name Required Max length of 100 Phone Number ...