Skip to content

Commit

Permalink
Merge pull request #49 from zodiake/patch-1
Browse files Browse the repository at this point in the history
Update index.md
  • Loading branch information
StevenTCramer authored Feb 21, 2024
2 parents f7975aa + 17179fb commit ce481aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Razor will only execute C# code in the following places:
3. Within the `@code` section.

The technique we need to employ to generate one or more attributes + values for a HTML element is called "Attribute splatting".
Attribute splatting involves assigning a `Dictionary<string, object>` to an attribute with the special name `@attribute`.
Attribute splatting involves assigning a `Dictionary<string, object>` to an attribute with the special name `@attributes`.

```razor
<div @attributes=MyCodeGeneratedAttributes/>
Expand Down

0 comments on commit ce481aa

Please sign in to comment.