Add [SupplyParameterFromRoute] for Blazor
Open
area-blazor
enhancement
feature-model-binding
Pillar: Complete Blazor Web
Priority:2
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 290
Description
Blazor supports binding component parameters to route values, but these values are generally provided directly from routing as strings. Blazor does have a special case where route values that have route type constraints (like `{count:int}`) can be bound to simple .NET types, but you really should be able to model bind route values without the constraints like MVC does. We should add a `[SupplyParamaterFromRoute]` to support this.
Contributor guide
Assessment
This issue has not been assessed yet.