aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

[Suggestion] Add ability to rename Context in component itself

Open SamVogelskamp opened this issue 8 years ago • 1 comments

An attribute along the lines of

[Context="Item"]
@SomeRenderFragment(someVariable)

would make the page using the component way cleaner in my opinion.

SamVogelskamp avatar Nov 30 '18 11:11 SamVogelskamp

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.

rynowak avatar Dec 03 '18 18:12 rynowak