compressed
diff --git a/BlazorReorderExample/Pages/FetchData.razor b/BlazorReorderExample/Pages/FetchData.razor
deleted file mode 100644
index 7d004a5..0000000
--- a/BlazorReorderExample/Pages/FetchData.razor
+++ /dev/null
@@ -1,57 +0,0 @@
-@page "/fetchdata"
-@inject HttpClient Http
-
-Weather forecast
-
-Weather forecast
-
-This component demonstrates fetching data from the server.
-
-@if (forecasts == null)
-{
- Loading...
-}
-else
-{
-
-
-
- Date |
- Temp. (C) |
- Temp. (F) |
- Summary |
-
-
-
- @foreach (var forecast in forecasts)
- {
-
- @forecast.Date.ToShortDateString() |
- @forecast.TemperatureC |
- @forecast.TemperatureF |
- @forecast.Summary |
-
- }
-
-
-}
-
-@code {
- private WeatherForecast[]? forecasts;
-
- protected override async Task OnInitializedAsync()
- {
- forecasts = await Http.GetFromJsonAsync("sample-data/weather.json");
- }
-
- public class WeatherForecast
- {
- public DateTime Date { get; set; }
-
- public int TemperatureC { get; set; }
-
- public string? Summary { get; set; }
-
- public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
- }
-}
diff --git a/BlazorReorderExample/Pages/Index.razor b/BlazorReorderExample/Pages/Index.razor
index b30b450..e35d82a 100644
--- a/BlazorReorderExample/Pages/Index.razor
+++ b/BlazorReorderExample/Pages/Index.razor
@@ -17,8 +17,6 @@ Welcome to your new reorderer list.
@code
{
- public record ListItem(string title, string url, string details);
-
public List list = new()
{
new ListItem("Google", "google.com", "Again looking for a bug ..."),
diff --git a/BlazorReorderExample/Program.cs b/BlazorReorderExample/Program.cs
index 3253411..4c8572b 100644
--- a/BlazorReorderExample/Program.cs
+++ b/BlazorReorderExample/Program.cs
@@ -7,5 +7,8 @@ builder.RootComponents.Add("#app");
builder.RootComponents.Add("head::after");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
+builder.Services.AddTransient>();
await builder.Build().RunAsync();
+
+public record ListItem(string title, string url, string details);
diff --git a/BlazorReorderExample/Shared/NavMenu.razor b/BlazorReorderExample/Shared/NavMenu.razor
index fe91085..40bc214 100644
--- a/BlazorReorderExample/Shared/NavMenu.razor
+++ b/BlazorReorderExample/Shared/NavMenu.razor
@@ -19,11 +19,6 @@
Counter
-
-
- Fetch data
-
-
diff --git a/BlazorReorderExample/_Imports.razor b/BlazorReorderExample/_Imports.razor
index 54c372c..d29d73b 100644
--- a/BlazorReorderExample/_Imports.razor
+++ b/BlazorReorderExample/_Imports.razor
@@ -8,3 +8,4 @@
@using Microsoft.JSInterop
@using BlazorReorderExample
@using BlazorReorderExample.Shared
+@using BlazorReorderList
diff --git a/BlazorReorderExample/wwwroot/index.html b/BlazorReorderExample/wwwroot/index.html
index c77cffe..4e48664 100644
--- a/BlazorReorderExample/wwwroot/index.html
+++ b/BlazorReorderExample/wwwroot/index.html
@@ -20,39 +20,6 @@
🗙
-
-