aspnetcore
aspnetcore copied to clipboard
[Suggestion] Add ability to rename Context in component itself
An attribute along the lines of
[Context="Item"]
@SomeRenderFragment(someVariable)
would make the page using the component way cleaner in my opinion.
We intentionally did it this way (caller decides) to prevent consumers of libraries from having to guess or rely on tooling to know what the parameter is called. We could reevaluate this in the future if the tooling experience provides direct support for it.... but we don't want it to be difficult to use components in a low tech editor.