Skip to content

Commit 77f9958

Browse files
author
Ajay kumar
committed
[Tech] [Ajay]: Add id to section
1 parent f0f491e commit 77f9958

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TestArena/Blog/Common/Section.razor

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
[Required] [Parameter] public string Heading { get; set; }
55
[Parameter] public int Level { get; set; } = 3;
66
[Parameter, EditorRequired] public RenderFragment ChildContent { get; set; } = default!;
7+
public string ID { get; set; } = Guid.NewGuid().ToString();
78
}
89

9-
<section>
10+
<section id="@ID">
1011
@{
1112
switch (Level)
1213
{

0 commit comments

Comments
 (0)