Commit 0784053
committed
Add countries field to Home.razor; update project refs
In Home.razor, added a private field `countries` to store a
collection of countries and updated `OnInitializedAsync` to
initialize this field by fetching data from `CountryService`.
In CountryData.Sample.ConsoleProject.csproj, removed an
unnecessary project reference to simplify dependencies.1 parent 4b74c36 commit 0784053
2 files changed
Lines changed: 6 additions & 1 deletion
File tree
- sample
- CountryData.Sample.Blazor/Components/Pages
- CountryData.Sample.Console
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
0 commit comments