Current count: @currentCount
8 | 9 | 10 | 11 | @code { 12 | private int currentCount = 0; 13 | 14 | private void IncrementCount() 15 | { 16 | currentCount++; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /AdminTemplateDemos/Pages/PageTemplates/Pages/404Page.razor: -------------------------------------------------------------------------------- 1 | @page "/404" 2 | 3 |The requested URL was not found on this server.
The page might have been removed.
The server encountered an unexpected condition which prevented it
from fulfilling the request.
Empty card
17 |@source5 | 6 | @code { 7 | private ElementReference pre; 8 | private string source; 9 | 10 | [Parameter] 11 | public string PageName { get; set; } 12 | 13 | protected override async Task OnInitializedAsync() 14 | { 15 | var http = new HttpClient(); 16 | 17 | source = await http.GetStringAsync($"https://raw.githubusercontent.com/HTMLElements/smart-blazor/main/Pages/{PageName}"); 18 | source = Regex.Replace(source, "?Example[^>]*>\n", ""); 19 | } 20 | 21 | protected override async Task OnAfterRenderAsync(bool firstRender) 22 | { 23 | if (!String.IsNullOrEmpty(source)) 24 | { 25 | await JSRuntime.InvokeAsync