Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification on using the @ prefix #34570

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

guardrex
Copy link
Collaborator

@guardrex guardrex commented Jan 27, 2025

Fixes #34564

Thanks, @nicholasyin! 🚀 ... Hopefully, this will clarify the points. Whether or not you prefix for nonliterals is up to the dev. Per management's decision, we'll stick with the current approach and only prefix when necessary. The text and example updates here should help with these points. I've included an example now where there's a nonliteral (a count in Count) that doesn't receive a prefix (Count="count"), and there's new text to explain what's going on.

This goes along with sample app updates on dotnet/blazor-samples#461.

You can see the new components for the examples here ...

Thanks again! ... and Happy New Year! 🕺💃🥳🍾


Internal previews

📄 File 🔗 Preview link
aspnetcore/blazor/components/index.md aspnetcore/blazor/components/index

@guardrex guardrex self-assigned this Jan 27, 2025
@guardrex guardrex merged commit 745ce48 into main Jan 29, 2025
3 checks passed
@guardrex guardrex deleted the guardrex/blazor-component-param-conventions branch January 29, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need clarification on using @ prefix on Razor component's attribute values
1 participant