dotnet / dotnet/aspnetcore

Add [SupplyParameterFromRoute] for Blazor

Open
#49,817 1 comment 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.