@Item.Url
+
@msg
+ } +Current count: @currentCount
- - - -@code { - private int currentCount = 0; - - private void IncrementCount() - { - currentCount++; - } -} diff --git a/Apps/Client/Pages/Detail.razor b/Apps/Client/Pages/Detail.razor new file mode 100644 index 0000000..947cec7 --- /dev/null +++ b/Apps/Client/Pages/Detail.razor @@ -0,0 +1,58 @@ +@page "/links/{id:guid}" +@inject LinksClient Links +@inject CommentsClient Comments +@inject NotificationManager Notification + +@if (_link == null) +{ +Loading link detail...
+} +else +{ +Loading link comments...
+ } + else if (_comments.Count == 0) + { +No comments yet.
+ } + else + { +Current count: @currentCount
+ +Current count in component: @Count
+ + + + +@code { + [Parameter] + public int Count { get; set; } + + [Parameter] + public EventCallback
+
@msg
+ } +