Need clarification on using @ prefix on Razor component's attribute values #34564
Labels
aspnet-core/svc
blazor/subsvc
Blazor
doc-enhancement
Pri1
Source - Docs.ms
Docs Customer feedback via GitHub Issue
Description
For one thing, the example below doesn't seem to follow the above convention of not using
@
prefix for non-literal variable in attribute values.In addition, I think adding
@
is more reasonable becauseCount="ct"
would intuitively give me the impression thatct
is a regular string assigned toCount
variable.Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/components/?view=aspnetcore-9.0#route-parameters
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/components/index.md
Document ID
31ad18df-1904-bbdd-cfed-8d0d0267c10e
Article author
@guardrex
Metadata
Related Issues
The text was updated successfully, but these errors were encountered: