This example show cases how to make one drop down change the contents of the other.
It does this by listening to the @bind-SelectedItem:after
event to update
the second drop down's Items
from the inner list of SelectedSpecies.Breed
.
These examples showcases it with two different approaches.
- Separate Objects - This approach has two separate list. One for species and one for breeds. Click to View
- Nested Objects - This approach the first dropdown contains the options of the second list.